OSDN Git Service

An improvement is made so that restored backup packages after installation failure...
authorMamoru Sakaue / MwGhennndo <glmwghennndo@users.sourceforge.jp>
Tue, 29 Jan 2013 06:11:37 +0000 (15:11 +0900)
committerMamoru Sakaue / MwGhennndo <glmwghennndo@users.sourceforge.jp>
Tue, 29 Jan 2013 06:11:37 +0000 (15:11 +0900)
modified:   portsreinstall

portsreinstall

index db37a00..e7b6018 100755 (executable)
@@ -10,7 +10,7 @@
 # ================================================
 
 APPNAME=`basename "$0"`
-MYVERSION=2.2.2+toward_2.2.3_20130128033128
+MYVERSION=2.2.2+toward_2.2.3_20130129151001
 
 PREFIX=${PREFIX:-/usr/local}
 CONFFILE=${PREFIX}/etc/${APPNAME}.conf
@@ -2773,7 +2773,7 @@ then
                                                        echo "WARNING: No backup exists, gave up." >&2
                                                elif pkg_add_fF "$backup_pkg"
                                                then
-                                                       :
+                                                       rm -f "$backup_pkg"
                                                else
                                                        echo "WARNING: Failed to restore $backedup_version. Note that your system may experience troubles by this error." >&2
                                                fi