1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-22 20:41:26 +00:00

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.
This commit is contained in:
Akinori MUSHA 2001-05-31 15:18:00 +00:00
parent 5feb8b8ae2
commit 002a0185d3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=43353
8 changed files with 52 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= portupgrade
PORTVERSION= 1.34
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_LOCAL} \
http://www.iDaemons.org/distfiles/

View File

@ -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

View File

@ -7,6 +7,7 @@
PORTNAME= portupgrade
PORTVERSION= 1.34
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_LOCAL} \
http://www.iDaemons.org/distfiles/

View File

@ -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

View File

@ -7,6 +7,7 @@
PORTNAME= portupgrade
PORTVERSION= 1.34
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_LOCAL} \
http://www.iDaemons.org/distfiles/

View File

@ -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

View File

@ -7,6 +7,7 @@
PORTNAME= portupgrade
PORTVERSION= 1.34
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_LOCAL} \
http://www.iDaemons.org/distfiles/

View File

@ -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