You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
994 B

#!/bin/bash
for RELEASE in $RELEASES; do
echo "Release: $RELEASE";
# This is the main script, fetching the archives and running Britney
./fetch-indexes $RELEASE;
# Britney outputs the candidates for testing migration, read the additions
egrep -v '^(#|-)' britney_output/*/HeidiOutputDelta > candidates || echo "No candidates found.";
while read -r -a package; do
# This can eventually be extendable to different archive types
if [ $ARCHIVE_TYPE = "ppa" ]; then
./ubuntu-archive-tools/copy-package --dry-run -y -b -s $RELEASE --from "ppa:lubuntu-ci/ubuntu/unstable-ci-proposed" --to "ppa:lubuntu-ci/ubuntu/unstable-ci" --version "${package[1]}" "${package[0]}";
./ubuntu-archive-tools/remove-package --dry-run -y -s $RELEASE --archive "ppa:lubuntu-ci/ubuntu/unstable-ci-proposed" --version "${package[1]}" --removal-comment="moved to release" "${package[0]}";
fi
done < candidates;
rm -rf britney_output/;
done