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

[enhancement] multiple mirror update #27

Closed
erickeller opened this Issue Apr 10, 2014 · 5 comments

Comments

Projects
None yet
2 participants
@erickeller
Copy link

erickeller commented Apr 10, 2014

aptly mirror list
List of mirrors:

Would it be possible to update multiple repos in one aptly call?
/usr/bin/aptly -config=/home/kellere5/.aptly.conf mirror update debian-main,debian-security
or
/usr/bin/aptly -config=/home/kellere5/.aptly.conf mirror update all

/usr/bin/aptly -config=/home/kellere5/.aptly.conf mirror update [regexp]="debian.*"

Reagards

@smira

This comment has been minimized.

Copy link
Member

smira commented Apr 11, 2014

Currently aptly mirror list output is not easily machine-parseable, how about having aptly mirror list with raw output (mirror name on each line) and doing something like:

aptly mirror list -raw | grep -E 'debian.*' | xargs -n 1 aptly mirror update

What do you think?

@erickeller

This comment has been minimized.

Copy link

erickeller commented Apr 13, 2014

I think it's enough for my cronjob...

@erickeller

This comment has been minimized.

Copy link

erickeller commented Apr 13, 2014

aptly mirror list | sed -e 's#.*\[\(.*\)\]:.*#\1#g' | grep -E 'precise.*' | xargs -n 1 aptly mirror update

does the trick, if I understand you correctly you would like to add -raw parameter to the list, would replace the sed...

@smira

This comment has been minimized.

Copy link
Member

smira commented Apr 13, 2014

Yes, exactly!

@smira smira added this to the v0.5 milestone Apr 13, 2014

smira added a commit that referenced this issue Apr 15, 2014

smira added a commit to aptly-dev/aptly-bash-completion that referenced this issue Apr 15, 2014

smira added a commit that referenced this issue Apr 15, 2014

smira added a commit to aptly-dev/aptly-dev.github.io that referenced this issue Apr 15, 2014

@smira

This comment has been minimized.

Copy link
Member

smira commented Apr 15, 2014

Done in master.

@smira smira closed this Apr 15, 2014

erickeller pushed a commit to erickeller/aptly that referenced this issue Apr 16, 2014

aplty mirror update support regular expression as parameter, allowing
multiple update of repositories matching this regexp fixes aptly-dev#27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment