Hello, On šeštadienis 22 Rugpjūtis 2009 17:05:50 Bernhard R. Link wrote:
> I think it should suffice to just do > > > # processincoming with limit_arch_all > > reprepro processincoming ruleset "$f" > > > > # Make sure arch:all packages are in sync > > reprepro flood $distribution > > As archall is just one architecture to flood also put the > architecture all packages there (and as long as you do not > manage to upload _archall.deb files, flood will just put > every architecture all package it finds in there). Ok. > Doing that from Log will not work, as long as reprepro is still running, > the other reprepro will not work. and reprepro waits for the logs to > finish (as it only deletes to be deleted files after the log is > completed, so those scripts can look at them). So if you want to do > something like that you need to fork in the background and wait for the > logfile to vanish. > > Also note that running flood when there is nothing to do should not harm > (only some looking, no new index files or other stuff). > > Also note that while > > > reprepro flood $distribution $ARCHALL > > reprepro -A archall flood $distribution > > is different from > > > reprepro flood $distribution Ok, much clearer now. so I will probably need to do something like this: Log --changes script: -------- #!/bin/sh distribution="$2" distofile="/path/to/distrofile" if [ -f "$distrofile" ]; then if ! grep -q "^$distribution\$" "$distrofile"; then echo "$distribution" >> "$distrofile" fi else echo "$distribution" > "$distrofile" fi -------- processincoming script: ------- #!/bin/sh distofile="/path/to/distrofile" reprepro processincoming ruleset if [ -f "$distrofile" ]; then for distribution in `cat "$distrofile"`; do reprepro flood "$distribution" done fi ------- The good thing about this is that I no longer need to process each changes file manually (or get distribution from the .changes directly) and I may let reprepro to do this. Thanks. -- Modestas Vainius <modes...@vainius.eu>
signature.asc
Description: This is a digitally signed message part.