The following commit has been merged in the master branch:
commit 34102f4b67eecf1d2b047f4eb54526dd7764f9e4
Author: Frank Lichtenheld <[EMAIL PROTECTED]>
Date:   Sat Feb 9 20:08:33 2008 +0100

    Packages::CommonCode::activate(): Die on error

diff --git a/lib/Packages/CommonCode.pm b/lib/Packages/CommonCode.pm
index b33f7b4..2968785 100644
--- a/lib/Packages/CommonCode.pm
+++ b/lib/Packages/CommonCode.pm
@@ -49,7 +49,8 @@ sub parse_control_par {
 sub activate {
     my ($file) = @_;
 
-    rename("${file}.new", $file);
+    rename("${file}.new", $file)
+       or die "rename ${file}.new $file failed: $!\n";
 }
 
 sub activate_dir {

-- 
APT Archive Web-Frontend (Alioth repository)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to