Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: read filters from file #157

Closed
smira opened this issue Dec 11, 2014 · 6 comments
Closed

feature request: read filters from file #157

smira opened this issue Dec 11, 2014 · 6 comments

Comments

@smira
Copy link
Contributor

smira commented Dec 11, 2014

Filter line could be longer than command line limit.

Probably, support format of multiple liens and convert it into 'line1 | line2 | ...' automatically.

@smira smira added the feature label Dec 11, 2014
@smira smira added this to the v0.9 milestone Dec 11, 2014
@rtrsparq
Copy link

multiple lines would be good, because if we can put a separate package per line it makes the diffs easy to review as the file changes.

thanks,

@smira smira modified the milestones: v0.9, v0.9.5 Feb 6, 2015
@smira smira modified the milestones: v0.9.5, v0.9.6 Mar 13, 2015
@smira smira modified the milestones: v0.9.6, v0.9.7 Jan 24, 2016
@smira smira modified the milestones: v0.9.7, v0.9.8 Apr 18, 2016
@smira smira removed this from the v0.9.8 milestone Mar 27, 2017
@flamableconcrete
Copy link

Any progress on this? This would be super useful!

@tirolerstefan
Copy link
Contributor

tirolerstefan commented Nov 21, 2017

When switching from reprepro (with mirror and filterlist file), this feature would really be important.

Filterlist in reprepro looks like this:

accountsservice install
acl install
acpi-support purge
acpid install
adduser install
[...]

@5hir0kur0
Copy link
Contributor

Reading from a file is now possible since #1411 was merged.

Currently, newlines are just treated as whitespace, but what you can already do is take your newline-separated package file and add | in front of all newlines (except for the last), e.g.:

vim-common |
bash |
libc6

You can then use it as a filter with aptly mirror create -filter='@/path/to/packagelist' ....

@neolynx
Copy link
Member

neolynx commented Dec 23, 2024

a list of package files can be converted with sed -e '$ ! s/$/ |/' to automatically add the | except on the last line.

@neolynx
Copy link
Member

neolynx commented Dec 23, 2024

closing as this is now possible

@neolynx neolynx closed this as completed Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants