| 1 |
#! /bin/sh |
| 2 |
set -e |
| 3 |
|
| 4 |
# Called from update-versions (inside the lock) to process all *.debinfo |
| 5 |
# files in the queue. |
| 6 |
|
| 7 |
SOURCE="$1" |
| 8 |
|
| 9 |
cd "/org/bugs.debian.org/versions/queue/$SOURCE" |
| 10 |
|
| 11 |
find . -maxdepth 1 -name \*.debinfo -printf '%P\n' | while read x; do |
| 12 |
/org/bugs.debian.org/versions/bin/merge-one-debinfo "$x" || continue |
| 13 |
pkg="${x%%_*}" |
| 14 |
pkghash="$(echo "$pkg" | cut -b 1)" |
| 15 |
mkdir -p "/org/bugs.debian.org/versions/archive/$SOURCE/$pkghash/$pkg" |
| 16 |
mv "$x" "/org/bugs.debian.org/versions/archive/$SOURCE/$pkghash/$pkg" |
| 17 |
done |