diff options
author | bapt <bapt@FreeBSD.org> | 2012-04-19 05:25:19 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2012-04-19 05:25:19 +0800 |
commit | 67390adc3525ab8e599f207de7eeb64cd66946c3 (patch) | |
tree | d6f47d6b9e7ef66a4fc4a6542bdd5ce43ece2bcf /ports-mgmt/pkg | |
parent | c73b2965d0692c498b52f95753e1939745c32858 (diff) | |
download | freebsd-ports-gnome-67390adc3525ab8e599f207de7eeb64cd66946c3.tar.gz freebsd-ports-gnome-67390adc3525ab8e599f207de7eeb64cd66946c3.tar.zst freebsd-ports-gnome-67390adc3525ab8e599f207de7eeb64cd66946c3.zip |
Fix bug preventing self upgrade with beta11
Diffstat (limited to 'ports-mgmt/pkg')
-rw-r--r-- | ports-mgmt/pkg/Makefile | 1 | ||||
-rw-r--r-- | ports-mgmt/pkg/files/patch-libpkg__pkgdb.c | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/ports-mgmt/pkg/Makefile b/ports-mgmt/pkg/Makefile index 35498a885f15..b87d6477800b 100644 --- a/ports-mgmt/pkg/Makefile +++ b/ports-mgmt/pkg/Makefile @@ -7,6 +7,7 @@ PORTNAME= pkg DISTVERSION= 1.0-beta11 +PORTREVISION= 1 CATEGORIES= ports-mgmt MASTER_SITES= LOCAL/portmgr \ http://files.etoilebsd.net/pkg/ diff --git a/ports-mgmt/pkg/files/patch-libpkg__pkgdb.c b/ports-mgmt/pkg/files/patch-libpkg__pkgdb.c new file mode 100644 index 000000000000..84aefeaae979 --- /dev/null +++ b/ports-mgmt/pkg/files/patch-libpkg__pkgdb.c @@ -0,0 +1,11 @@ +--- ./libpkg/pkgdb.c.orig 2012-04-13 22:16:54.000000000 +0200 ++++ ./libpkg/pkgdb.c 2012-04-18 23:22:48.794371806 +0200 +@@ -302,7 +302,7 @@ + } + + while (db_version < DBVERSION) { +- if (!sqlite3_db_readonly(db->sqlite, "main")) { ++ if (sqlite3_db_readonly(db->sqlite, "main")) { + pkg_emit_error("The database is outdated and opened readonly"); + return (EPKG_FATAL); + } |