aboutsummaryrefslogtreecommitdiffstats
path: root/ports-mgmt/portupgrade-devel
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2004-03-29 06:40:25 +0800
committerknu <knu@FreeBSD.org>2004-03-29 06:40:25 +0800
commit62ce3d9c23db06a40c9bfcaff32f40e790978f7e (patch)
tree34e3af858adcc6477e21ca1d128c91c43ab4f64e /ports-mgmt/portupgrade-devel
parentd0cc3fe31a4ce97ea2ec9f12fec659067060ea84 (diff)
downloadfreebsd-ports-graphics-62ce3d9c23db06a40c9bfcaff32f40e790978f7e.tar.gz
freebsd-ports-graphics-62ce3d9c23db06a40c9bfcaff32f40e790978f7e.tar.zst
freebsd-ports-graphics-62ce3d9c23db06a40c9bfcaff32f40e790978f7e.zip
Fix a stupid bug introduced by the last update, which destroyed
pkgnames and caused portupgrade to fail. Reported by: Palle Girgensohn <girgen@pingpong.net>
Diffstat (limited to 'ports-mgmt/portupgrade-devel')
-rw-r--r--ports-mgmt/portupgrade-devel/Makefile1
-rw-r--r--ports-mgmt/portupgrade-devel/files/patch-pkgversion.rb9
2 files changed, 10 insertions, 0 deletions
diff --git a/ports-mgmt/portupgrade-devel/Makefile b/ports-mgmt/portupgrade-devel/Makefile
index c1d1ff0ba6c..f0fb1610173 100644
--- a/ports-mgmt/portupgrade-devel/Makefile
+++ b/ports-mgmt/portupgrade-devel/Makefile
@@ -7,6 +7,7 @@
PORTNAME= portupgrade
PORTVERSION= 20040325
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ftp://ftp.iDaemons.org/pub/distfiles/ \
${MASTER_SITE_LOCAL}
diff --git a/ports-mgmt/portupgrade-devel/files/patch-pkgversion.rb b/ports-mgmt/portupgrade-devel/files/patch-pkgversion.rb
new file mode 100644
index 00000000000..9a644935fbc
--- /dev/null
+++ b/ports-mgmt/portupgrade-devel/files/patch-pkgversion.rb
@@ -0,0 +1,9 @@
+--- lib/pkgversion.rb.orig Mon Mar 29 07:35:38 2004
++++ lib/pkgversion.rb Mon Mar 29 07:36:10 2004
+@@ -62,4 +62,4 @@
+ # ignore padded 0's
+- n1.gsub!(/(^|\D)0+(\d)/, "\\1\\2")
+- n2.gsub!(/(^|\D)0+(\d)/, "\\1\\2")
++ n1 = n1.gsub(/(^|\D)0+(\d)/, "\\1\\2")
++ n2 = n2.gsub(/(^|\D)0+(\d)/, "\\1\\2")
+