+2006-01-29 Julian Gilbey <jdg@debian.org>
+
+ * scripts/dpkg-buildpackage.sh: Create .changes
+ file even if signing .dsc file fails to make it
+ easier to just sign the package later.
+
2006-01-29 Anand Kumria <wildfire@progsoc.org>
* scripts/dpkg-source.pl (checkdiff): Ignore comments
[ Frank Lichtenheld ]
* Let dpkg-source ignore comments in the hunk header as used by
- diff -p (Anand Kumria). Closes: #344880
+ diff -p (Anand Kumria). Closes: #344880
+ * Let dpkg-buildpackage create a .changes file even if signing the
+ .dsc file failed. This makes it easier to just sign the package
+ later (Julian Gilbey). Closes: #217963
-- Guillem Jover <guillem@debian.org> Sun, 29 Jan 2006 06:02:58 +0200
$signcommand -u "${signkey:-$maintainer}" +clearsig=on -fast <"../$1" \
>"../$1.asc"
fi
+ status=$?
+ if [ $status -eq 0 ]; then
+ mv -- "../$1.asc" "../$1"
+ else
+ /bin/rm -f "../$1.asc"
+ fi
echo
- mv -- "../$1.asc" "../$1"
+ return $status
}
withecho () {
read dummy_stuff
fi
+signerrors=
if [ x$binaryonly = x ]; then
- $signsource "$pv.dsc"
+ if ! $signsource "$pv.dsc"; then
+ signerrors="(WARNING: Failed to sign .dsc and .changes file)"
+ signchanges=:
+ fi
fi
chg=../"$pva.changes"
withecho dpkg-genchanges "$@" >"$chg"
fi
fi
-$signchanges "$pva.changes"
+if ! $signchanges "$pva.changes"; then
+ signerrors="(WARNING: Failed to sign .changes file)"
+fi
if $cleansource; then
withecho $rootcommand debian/rules clean
fi
echo "dpkg-buildpackage: $srcmsg"
+if [ -n "$signerrors" ]; then
+ echo >&2 $signerrors
+ exit 1
+fi