Author: adam-guest
Date: 2008-05-05 15:04:49 +0000 (Mon, 05 May 2008)
New Revision: 1432
Modified:
trunk/debian/changelog
trunk/scripts/debsign.sh
Log:
debsign: Use "mv -f" instead of plain "mv" when stripping an existing GPG
signature or updating the file sizes within the changes file before
signing it, as is already done for moving the resulting signed files
(Closes: #479569)
Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog 2008-05-04 15:13:35 UTC (rev 1431)
+++ trunk/debian/changelog 2008-05-05 15:04:49 UTC (rev 1432)
@@ -7,6 +7,10 @@
* cowpoke: New script to upload a Debian source package to a cowbuilder host
and build it, optionally also signing and uploading the result to an
incoming queue (Closes: #479274)
+ * debsign: Use "mv -f" instead of plain "mv" when stripping an existing GPG
+ signature or updating the file sizes within the changes file before
+ signing it, as is already done for moving the resulting signed files
+ (Closes: #479569)
[ James Vega ]
* mk-build-deps:
Modified: trunk/scripts/debsign.sh
===================================================================
--- trunk/scripts/debsign.sh 2008-05-04 15:13:35 UTC (rev 1431)
+++ trunk/scripts/debsign.sh 2008-05-05 15:04:49 UTC (rev 1432)
@@ -164,7 +164,7 @@
case $response in
[Nn]*)
sed -e '1,/^$/d; /^$/,$d' "$1" > "$1.unsigned"
- mv "$1.unsigned" "$1"
+ mv -f -- "$1.unsigned" "$1"
return 1
;;
*) return 0;;
@@ -415,7 +415,7 @@
$insha256=0;
}' "$temp_changes"
then
- mv "$temp_changes" "$changes"
+ mv -f -- "$temp_changes" "$changes"
else
rm "$temp_changes"
echo "$PROGNAME: Error processing .changes file (see above)" >&2
--
To unsubscribe, send mail to [EMAIL PROTECTED]