aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/portupgrade-devel
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2004-06-22 01:38:48 +0800
committerknu <knu@FreeBSD.org>2004-06-22 01:38:48 +0800
commit05ca864405ed1239d664603096740c0bb38b4e70 (patch)
treede62db4cf32894ba02e36135d8a4e9a7eb1e1e93 /sysutils/portupgrade-devel
parentdec615942db617a7fe154fa07f203b53754d0c1b (diff)
downloadfreebsd-ports-gnome-05ca864405ed1239d664603096740c0bb38b4e70.tar.gz
freebsd-ports-gnome-05ca864405ed1239d664603096740c0bb38b4e70.tar.zst
freebsd-ports-gnome-05ca864405ed1239d664603096740c0bb38b4e70.zip
Support the new, extended INDEX format.
Diffstat (limited to 'sysutils/portupgrade-devel')
-rw-r--r--sysutils/portupgrade-devel/Makefile1
-rw-r--r--sysutils/portupgrade-devel/files/patch-portinfo.rb19
2 files changed, 20 insertions, 0 deletions
diff --git a/sysutils/portupgrade-devel/Makefile b/sysutils/portupgrade-devel/Makefile
index 62a8e1c0588f..cc5d42fbc9bb 100644
--- a/sysutils/portupgrade-devel/Makefile
+++ b/sysutils/portupgrade-devel/Makefile
@@ -7,6 +7,7 @@
PORTNAME= portupgrade
PORTVERSION= 20040529
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ftp://ftp.iDaemons.org/pub/distfiles/ \
${MASTER_SITE_LOCAL}
diff --git a/sysutils/portupgrade-devel/files/patch-portinfo.rb b/sysutils/portupgrade-devel/files/patch-portinfo.rb
new file mode 100644
index 000000000000..2465672975fb
--- /dev/null
+++ b/sysutils/portupgrade-devel/files/patch-portinfo.rb
@@ -0,0 +1,19 @@
+Index: lib/portinfo.rb
+===================================================================
+RCS file: /home/cvs/pkgtools/lib/portinfo.rb,v
+retrieving revision 1.16
+diff -u -r1.16 portinfo.rb
+--- lib/portinfo.rb 8 Nov 2002 17:18:27 -0000 1.16
++++ lib/portinfo.rb 21 Jun 2004 17:36:11 -0000
+@@ -17,9 +17,9 @@
+ line.is_a?(String) or raise ArgumentError,
+ "You must specify a one line text of port info."
+
+- values = line.chomp.split(FIELD_SEPARATOR, NFIELDS)
++ values = line.chomp.split(FIELD_SEPARATOR)
+
+- if values.size != NFIELDS || values[NFIELDS - 1].index(FIELD_SEPARATOR)
++ if values.size < NFIELDS || values[NFIELDS - 1].index(FIELD_SEPARATOR)
+ raise ArgumentError, "Port info line must consist of #{NFIELDS} fields."
+ end
+