diff options
author | Sergey Matveychuk <sem@FreeBSD.org> | 2006-06-19 09:54:18 +0000 |
---|---|---|
committer | Sergey Matveychuk <sem@FreeBSD.org> | 2006-06-19 09:54:18 +0000 |
commit | 34ff7dab0c31f4898cc028d834a6355782cc9c93 (patch) | |
tree | 985354d7321a878f7863bcfd1b24340f2739b465 /ports-mgmt/portupgrade-devel | |
parent | 2aff4fb2bc6207da19a84a87111178830bedd066 (diff) | |
download | ports-34ff7dab0c31f4898cc028d834a6355782cc9c93.tar.gz ports-34ff7dab0c31f4898cc028d834a6355782cc9c93.zip |
Notes
Diffstat (limited to 'ports-mgmt/portupgrade-devel')
-rw-r--r-- | ports-mgmt/portupgrade-devel/Makefile | 2 | ||||
-rw-r--r-- | ports-mgmt/portupgrade-devel/files/patch-lib-pkgdb.rb | 25 |
2 files changed, 26 insertions, 1 deletions
diff --git a/ports-mgmt/portupgrade-devel/Makefile b/ports-mgmt/portupgrade-devel/Makefile index c2e7fb56e6a2..b9995529b308 100644 --- a/ports-mgmt/portupgrade-devel/Makefile +++ b/ports-mgmt/portupgrade-devel/Makefile @@ -7,7 +7,7 @@ PORTNAME= portupgrade PORTVERSION= 2.1.4 -PORTREVISION= 4 +PORTREVISION= 5 PORTEPOCH= 1 CATEGORIES= sysutils MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ diff --git a/ports-mgmt/portupgrade-devel/files/patch-lib-pkgdb.rb b/ports-mgmt/portupgrade-devel/files/patch-lib-pkgdb.rb new file mode 100644 index 000000000000..ae6a8eb1f95d --- /dev/null +++ b/ports-mgmt/portupgrade-devel/files/patch-lib-pkgdb.rb @@ -0,0 +1,25 @@ +--- lib/pkgdb.rb.orig Mon Jun 19 13:50:29 2006 ++++ lib/pkgdb.rb Mon Jun 19 13:51:35 2006 +@@ -606,17 +606,17 @@ + def get_db(mode, perm) + case db_driver + when :bdb_btree +- db = BDB::Btree.open @db_file, nil, mode, perm, *@db_params ++ db = BDB::Btree.open @db_file, nil, mode.to_i, perm, *@db_params + when :bdb_hash +- db = BDB::Hash.open @db_file, nil, mode, perm, *@db_params ++ db = BDB::Hash.open @db_file, nil, mode.to_i, perm, *@db_params + when :bdb1_btree +- db = BDB1::Btree.open @db_file, mode, perm, *@db_params ++ db = BDB1::Btree.open @db_file, mode.to_i, perm, *@db_params + when :bdb1_hash +- db = BDB1::Hash.open @db_file, mode, perm, *@db_params ++ db = BDB1::Hash.open @db_file, mode.to_i, perm, *@db_params + else + if mode == 'w+' + File.unlink(@db_file) if File.exist?(@db_file) +- db = DBM.open(@db_filebase, mode) ++ db = DBM.open(@db_filebase, mode.to_i) + else + db = DBM.open(@db_filebase) + end |