diff options
author | sem <sem@FreeBSD.org> | 2006-06-19 17:54:18 +0800 |
---|---|---|
committer | sem <sem@FreeBSD.org> | 2006-06-19 17:54:18 +0800 |
commit | 06521ed2b9a63daed633cd5eb54dab7d83747178 (patch) | |
tree | 3451ad77f0aacfb09ca567c866bd3b75498a8fb8 /sysutils | |
parent | 117dd03ebd26e8aa19926bff271cc11098d65a4c (diff) | |
download | freebsd-ports-gnome-06521ed2b9a63daed633cd5eb54dab7d83747178.tar.gz freebsd-ports-gnome-06521ed2b9a63daed633cd5eb54dab7d83747178.tar.zst freebsd-ports-gnome-06521ed2b9a63daed633cd5eb54dab7d83747178.zip |
- Fix parameter in DBM.open(). It caused the message:
Rebuilding the pkgdb <format:dbm_hash> in /var/db/pkg ... can't convert String into Integer
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/portupgrade-devel/Makefile | 2 | ||||
-rw-r--r-- | sysutils/portupgrade-devel/files/patch-lib-pkgdb.rb | 25 | ||||
-rw-r--r-- | sysutils/portupgrade/Makefile | 2 | ||||
-rw-r--r-- | sysutils/portupgrade/files/patch-lib-pkgdb.rb | 25 |
4 files changed, 52 insertions, 2 deletions
diff --git a/sysutils/portupgrade-devel/Makefile b/sysutils/portupgrade-devel/Makefile index c2e7fb56e6a2..b9995529b308 100644 --- a/sysutils/portupgrade-devel/Makefile +++ b/sysutils/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/sysutils/portupgrade-devel/files/patch-lib-pkgdb.rb b/sysutils/portupgrade-devel/files/patch-lib-pkgdb.rb new file mode 100644 index 000000000000..ae6a8eb1f95d --- /dev/null +++ b/sysutils/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 diff --git a/sysutils/portupgrade/Makefile b/sysutils/portupgrade/Makefile index c2e7fb56e6a2..b9995529b308 100644 --- a/sysutils/portupgrade/Makefile +++ b/sysutils/portupgrade/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/sysutils/portupgrade/files/patch-lib-pkgdb.rb b/sysutils/portupgrade/files/patch-lib-pkgdb.rb new file mode 100644 index 000000000000..ae6a8eb1f95d --- /dev/null +++ b/sysutils/portupgrade/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 |