Make tools/update_popcon exit with errors when it fails
This commit is contained in:
parent
c59a3491ee
commit
7bb6261ce5
|
@ -5,6 +5,7 @@ debian-cd (3.1.21-stretch) UNRELEASED; urgency=medium
|
|||
dependency order so they're guaranteed to fit (firefox,
|
||||
network-manager-gnome, synaptic)
|
||||
+ Fix for update-cd: Add SHA256 checksums to Packages files for update images
|
||||
+ Make tools/update_popcon exit with errors when it fails
|
||||
|
||||
-- Steve McIntyre <93sam@debian.org> Mon, 19 Jun 2017 13:39:58 +0100
|
||||
|
||||
|
|
|
@ -63,7 +63,15 @@ dl_file () {
|
|||
}
|
||||
|
||||
MAIN_DATE=`dl_file main`
|
||||
error=$?
|
||||
if [ $error -ne 0 ]; then
|
||||
exit $error
|
||||
fi
|
||||
CONTRIB_DATE=`dl_file contrib`
|
||||
error=$?
|
||||
if [ $error -ne 0 ]; then
|
||||
exit $error
|
||||
fi
|
||||
|
||||
OUT=$1
|
||||
rm -f $OUT
|
||||
|
@ -81,3 +89,7 @@ echo "" >> $OUT
|
|||
cat $TDIR/main $TDIR/contrib | \
|
||||
egrep -v '(^#|Total|-----|kernel-source)' | \
|
||||
sort -rn -k3,3 -k7,7 -k4,4 | awk '{print $2}' >> $OUT
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
exit $?
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue