diff options
author | knu <knu@FreeBSD.org> | 2001-05-31 23:18:00 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2001-05-31 23:18:00 +0800 |
commit | c1f879e5c8da8ffd858692e22fd8c03419a34806 (patch) | |
tree | 4a9dc239c933bf7bffb7e21aab47db0b0e689343 /ports-mgmt | |
parent | 6b7bc8ab80a21eeb2bd003bce387c575f5f4278a (diff) | |
download | freebsd-ports-gnome-c1f879e5c8da8ffd858692e22fd8c03419a34806.tar.gz freebsd-ports-gnome-c1f879e5c8da8ffd858692e22fd8c03419a34806.tar.zst freebsd-ports-gnome-c1f879e5c8da8ffd858692e22fd8c03419a34806.zip |
Apply a hotfix against a critical bug that +CONTENTS are lost when you
do upgrade as root and TMPDIR and /var/db/pkg are on different
filesystems.
Diffstat (limited to 'ports-mgmt')
-rw-r--r-- | ports-mgmt/portupgrade-devel/Makefile | 1 | ||||
-rw-r--r-- | ports-mgmt/portupgrade-devel/files/patch-portupgrade | 12 | ||||
-rw-r--r-- | ports-mgmt/portupgrade/Makefile | 1 | ||||
-rw-r--r-- | ports-mgmt/portupgrade/files/patch-portupgrade | 12 |
4 files changed, 26 insertions, 0 deletions
diff --git a/ports-mgmt/portupgrade-devel/Makefile b/ports-mgmt/portupgrade-devel/Makefile index da235bdf8925..d305c4827ced 100644 --- a/ports-mgmt/portupgrade-devel/Makefile +++ b/ports-mgmt/portupgrade-devel/Makefile @@ -7,6 +7,7 @@ PORTNAME= portupgrade PORTVERSION= 1.34 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= ${MASTER_SITE_LOCAL} \ http://www.iDaemons.org/distfiles/ diff --git a/ports-mgmt/portupgrade-devel/files/patch-portupgrade b/ports-mgmt/portupgrade-devel/files/patch-portupgrade new file mode 100644 index 000000000000..5daef36b97fd --- /dev/null +++ b/ports-mgmt/portupgrade-devel/files/patch-portupgrade @@ -0,0 +1,12 @@ +--- portupgrade.orig Thu May 31 14:18:06 2001 ++++ portupgrade Fri Jun 1 00:10:54 2001 +@@ -571,8 +571,7 @@ + File.chmod 0644, w.path + + if File.writable? file +- File.delete file +- File.rename w.path, file ++ system '/bin/mv', '-f', w.path, file + else + sudo '/bin/mv', '-f', w.path, file + end diff --git a/ports-mgmt/portupgrade/Makefile b/ports-mgmt/portupgrade/Makefile index da235bdf8925..d305c4827ced 100644 --- a/ports-mgmt/portupgrade/Makefile +++ b/ports-mgmt/portupgrade/Makefile @@ -7,6 +7,7 @@ PORTNAME= portupgrade PORTVERSION= 1.34 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= ${MASTER_SITE_LOCAL} \ http://www.iDaemons.org/distfiles/ diff --git a/ports-mgmt/portupgrade/files/patch-portupgrade b/ports-mgmt/portupgrade/files/patch-portupgrade new file mode 100644 index 000000000000..5daef36b97fd --- /dev/null +++ b/ports-mgmt/portupgrade/files/patch-portupgrade @@ -0,0 +1,12 @@ +--- portupgrade.orig Thu May 31 14:18:06 2001 ++++ portupgrade Fri Jun 1 00:10:54 2001 +@@ -571,8 +571,7 @@ + File.chmod 0644, w.path + + if File.writable? file +- File.delete file +- File.rename w.path, file ++ system '/bin/mv', '-f', w.path, file + else + sudo '/bin/mv', '-f', w.path, file + end |