diff options
Diffstat (limited to 'sysutils/portupgrade-devel/files/patch-lib_portsdb.rb')
-rw-r--r-- | sysutils/portupgrade-devel/files/patch-lib_portsdb.rb | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/sysutils/portupgrade-devel/files/patch-lib_portsdb.rb b/sysutils/portupgrade-devel/files/patch-lib_portsdb.rb index d4342c93f67b..149bf63987c1 100644 --- a/sysutils/portupgrade-devel/files/patch-lib_portsdb.rb +++ b/sysutils/portupgrade-devel/files/patch-lib_portsdb.rb @@ -1,5 +1,18 @@ ---- lib/portsdb.rb.orig Tue Aug 2 10:24:50 2005 -+++ lib/portsdb.rb Tue Aug 2 10:25:17 2005 +Index: lib/portsdb.rb +=================================================================== +--- lib/portsdb.rb (.../vendor/portupgrade/trunk/lib/portsdb.rb) (revision 2) ++++ lib/portsdb.rb (.../branches/ports/lib/portsdb.rb) (revision 41) +@@ -194,8 +194,8 @@ + def db_dir=(new_db_dir) + @db_dir = new_db_dir || ENV['PORTS_DBDIR'] || ports_dir + +- @db_file = File.join(@db_dir, 'INDEX.db') +- @db_filebase = @db_file.sub(/\.db$/, '') ++ @db_filebase = File.join(@db_dir, File.basename(index_file())) ++ @db_file = @db_filebase + '.db' + + close_db + @@ -846,7 +846,7 @@ def all_depends_list(origin, before_args = nil, after_args = nil) |