Fix an error handler typo so it fails gracefully.

This commit is contained in:
Akinori MUSHA 2003-03-28 09:52:25 +00:00
parent 8f2801ea95
commit d74c4dc3c0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=77602
8 changed files with 48 additions and 4 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= portupgrade
PORTVERSION= 20030308
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= ftp://ftp.iDaemons.org/pub/distfiles/ \
${MASTER_SITE_LOCAL}

View File

@ -0,0 +1,11 @@
--- bin/pkg_fetch.orig Fri Mar 28 18:50:21 2003
+++ bin/pkg_fetch Fri Mar 28 18:50:33 2003
@@ -251,7 +251,7 @@
begin
FileUtils.mv(temp_path, save_path)
- rescue
+ rescue => e
warning_message "Failed to save the dowloaded tarball as #{save_path}"
raise e
end

View File

@ -7,7 +7,7 @@
PORTNAME= portupgrade
PORTVERSION= 20030308
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= ftp://ftp.iDaemons.org/pub/distfiles/ \
${MASTER_SITE_LOCAL}

View File

@ -0,0 +1,11 @@
--- bin/pkg_fetch.orig Fri Mar 28 18:50:21 2003
+++ bin/pkg_fetch Fri Mar 28 18:50:33 2003
@@ -251,7 +251,7 @@
begin
FileUtils.mv(temp_path, save_path)
- rescue
+ rescue => e
warning_message "Failed to save the dowloaded tarball as #{save_path}"
raise e
end

View File

@ -7,7 +7,7 @@
PORTNAME= portupgrade
PORTVERSION= 20030308
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= ftp://ftp.iDaemons.org/pub/distfiles/ \
${MASTER_SITE_LOCAL}

View File

@ -0,0 +1,11 @@
--- bin/pkg_fetch.orig Fri Mar 28 18:50:21 2003
+++ bin/pkg_fetch Fri Mar 28 18:50:33 2003
@@ -251,7 +251,7 @@
begin
FileUtils.mv(temp_path, save_path)
- rescue
+ rescue => e
warning_message "Failed to save the dowloaded tarball as #{save_path}"
raise e
end

View File

@ -7,7 +7,7 @@
PORTNAME= portupgrade
PORTVERSION= 20030308
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= ftp://ftp.iDaemons.org/pub/distfiles/ \
${MASTER_SITE_LOCAL}

View File

@ -0,0 +1,11 @@
--- bin/pkg_fetch.orig Fri Mar 28 18:50:21 2003
+++ bin/pkg_fetch Fri Mar 28 18:50:33 2003
@@ -251,7 +251,7 @@
begin
FileUtils.mv(temp_path, save_path)
- rescue
+ rescue => e
warning_message "Failed to save the dowloaded tarball as #{save_path}"
raise e
end