diff options
author | knu <knu@FreeBSD.org> | 2004-07-12 16:12:47 +0000 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2004-07-12 16:12:47 +0000 |
commit | be644b105a69f7902c8d3f37a887ed5c44cabe10 (patch) | |
tree | 8c03c23252dfff34f4fc5255736f6c1f578ed2d8 /ports-mgmt/portupgrade | |
parent | 2e618b16f2ca7b04321f634ea4eaf495d6a63519 (diff) | |
download | FreeBSD-ports-be644b105a69f7902c8d3f37a887ed5c44cabe10.zip FreeBSD-ports-be644b105a69f7902c8d3f37a887ed5c44cabe10.tar.gz |
Add a patch to read the index file via sort(1) instead of reading
directly to avoid core dump.
Diffstat (limited to 'ports-mgmt/portupgrade')
-rw-r--r-- | ports-mgmt/portupgrade/Makefile | 2 | ||||
-rw-r--r-- | ports-mgmt/portupgrade/files/patch-portsdb.rb | 14 |
2 files changed, 15 insertions, 1 deletions
diff --git a/ports-mgmt/portupgrade/Makefile b/ports-mgmt/portupgrade/Makefile index 0ed777b..02520dc 100644 --- a/ports-mgmt/portupgrade/Makefile +++ b/ports-mgmt/portupgrade/Makefile @@ -7,7 +7,7 @@ PORTNAME= portupgrade PORTVERSION= 20040701 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= sysutils MASTER_SITES= ftp://ftp.iDaemons.org/pub/distfiles/ \ ${MASTER_SITE_LOCAL} diff --git a/ports-mgmt/portupgrade/files/patch-portsdb.rb b/ports-mgmt/portupgrade/files/patch-portsdb.rb new file mode 100644 index 0000000..7317dcc --- /dev/null +++ b/ports-mgmt/portupgrade/files/patch-portsdb.rb @@ -0,0 +1,14 @@ +Index: lib/portsdb.rb +=================================================================== +RCS file: /home/cvs/pkgtools/lib/portsdb.rb,v +retrieving revision 1.80 +diff -u -2 -r1.80 portsdb.rb +--- lib/portsdb.rb 30 Jun 2004 16:22:35 -0000 1.80 ++++ lib/portsdb.rb 12 Jul 2004 16:08:12 -0000 +@@ -550,5 +550,5 @@ + open_db_for_rebuild! + +- File.open(index_file) do |f| ++ open("| sort #{shelljoin(index_file)}") do |f| + f.each_with_index do |line, i| + lineno = i + 1 |