You are not logged in.

#1 2016-02-01 23:15:22

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

The -f switch has been removed from repo-add

Prior to pacman-5.0.0-1, I could create a database suitable for pkgfile via:

repo-add -f reponame.files.tar.xz foo.tar.xz

Per the man page, it seems as though the -f switch is no longer supported.  What is the recommended method to accomplish this task?  Thanks!

old man page wrote:

REPO-ADD OPTIONS
...
-f, --files
  Tells repo-add also to create and include a list of the files in the specified packages. This is useful for creating databases listing all files in a given sync repository for tools that may use this information.

EDIT: I should have tried the script.  I see now that it will automatically make reponame.files.tar.xz so my question now is: how can one exclude files in the repo from reponame.files.tar.xz?

Last edited by graysky (2016-02-01 23:20:28)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2016-02-01 23:20:08

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,845
Website

Re: The -f switch has been removed from repo-add

The .files repo db is now created automagically when you add a package to a repo. Check the example at the bottom of the man page.

Last edited by WorMzy (2016-02-01 23:21:03)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2016-02-01 23:21:36

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: The -f switch has been removed from repo-add

Thanks for the reply, Wormzy.  I edited my post as you replied smile  I'll just echo my question in this reply here: how can one exclude files in the repo from reponame.files.tar.xz?

EDIT: Last night (early morning) for you in /usr/share/zoneinfo/GB, no?

Last edited by graysky (2016-02-01 23:24:04)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2016-02-01 23:35:33

anatolik
Developer
Registered: 2012-09-27
Posts: 458

Re: The -f switch has been removed from repo-add

Yep, hist the same problem. Here is the commit that makes the change https://projects.archlinux.org/pacman.g … 55df3c2d8a


Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster

Offline

#5 2016-02-01 23:36:16

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,845
Website

Re: The -f switch has been removed from repo-add

I don't think that's possible any more. Is there a use case for excluding individual packages from the files db? If so, you should probably open a bug report.

EDIT: Last night (early morning) for you in /usr/share/zoneinfo/GB, no?

Nah, it's only 11:30 here, the night is young. smile


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#6 2016-02-01 23:42:59

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,772

Re: The -f switch has been removed from repo-add

Wormzy wrote:

Nah, it's only 11:30 here, the night is young.

Isn't it nice no longer having to work the double shift at the staff taco bar since you are no longer the new guy?

Last edited by ewaller (2016-02-01 23:59:55)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#7 2016-02-01 23:58:14

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,845
Website

Re: The -f switch has been removed from repo-add

Definitely. I'm going to recommend that new mods are always hired in twos at the next secret meeting. They get to sleep in shifts, and we get a near constant stream of tacos! Win win!


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#8 2016-02-02 10:49:25

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: The -f switch has been removed from repo-add

WorMzy wrote:

I don't think that's possible any more. Is there a use case for excluding individual packages from the files db? If so, you should probably open a bug report.

EDIT: Last night (early morning) for you in /usr/share/zoneinfo/GB, no?

Nah, it's only 11:30 here, the night is young. smile

Niche use case likely not to affect most users.  I'll leave it be.  Thanks.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB