cd $overridedir
for file in override*.gz; do
- zcat $file > $(basename $file .gz)
+ zcat $file > $(basename $file .gz)
done
find . -maxdepth 1 -mindepth 1 -type l | xargs --no-run-if-empty rm
for suite in $suites; do
case $suite in
- oldstable) override_suite=lenny;;
- stable) override_suite=squeeze;;
- testing) override_suite=wheezy;;
- *) echo "Unknown suite type ($suite)"; exit 1;;
+ oldstable) override_suite=lenny;;
+ stable) override_suite=squeeze;;
+ testing) override_suite=wheezy;;
+ *) echo "Unknown suite type ($suite)"; exit 1;;
esac
for component in $components; do
- for override_type in $override_types; do
- case $override_type in
- deb) type="" ;;
- dsc) type=".src" ;;
- udeb) type=".debian-installer" ;;
- esac
+ for override_type in $override_types; do
+ case $override_type in
+ deb) type="" ;;
+ dsc) type=".src" ;;
+ udeb) type=".debian-installer" ;;
+ esac
- if [ "$override_type" = "udeb" ]; then
- if [ ! "$component" = "main" ]; then
- continue
- fi
- fi
- zcat override.$override_suite.$component$type.gz | dak control-overrides -q -a -t $override_type -s $suite -c updates/$component
- done
+ if [ "$override_type" = "udeb" ]; then
+ if [ ! "$component" = "main" ]; then
+ continue
+ fi
+ fi
+
+ OFILE="override.$override_suite.$component$type.gz"
+ if [ -r "$OFILE" ]; then
+ zcat "$OFILE" | dak control-overrides -q -a -t $override_type -s $suite -c updates/$component
+ fi
+ done
done
done
rm -f override.$dist.all3
components="main contrib non-free";
if [ -f override.$dist.main.debian-installer.gz ]; then
- components="$components main.debian-installer"
+ components="$components main.debian-installer"
fi
for component in $components; do
- zcat override.$dist.$component.gz >> override.$dist.all3
+ zcat override.$dist.$component.gz >> override.$dist.all3
if [ -e "override.$dist.$component.src.gz" ]; then
- zcat override.$dist.$component.src.gz >> override.$dist.all3.src
- fi
+ zcat override.$dist.$component.src.gz >> override.$dist.all3.src
+ fi
done
done