freebsd / pkg

Package management tool for FreeBSD. Help at #pkg on Libera Chat or pkg@FreeBSD.org
Other
753 stars 281 forks source link

pkgng multirepo broken: sqlite files named incorrectly #442

Closed kwm81 closed 11 years ago

kwm81 commented 11 years ago

With pkgng version 1.0.7 The repo's work fine if your using them on there own.

pkg update downloads the repo.txz files just fine. But errors out after the download with the following error:

Unable to open remote database "default". Try running 'pkg update' first. pkg: sqlite: library routine called out of sequence (pkgdb.c:2251) pkg: repository 'repo-default.sqlite' does not exist pkg: sqlite: library routine called out of sequence (pkgdb.c:2350)

Unable to open remote database "default". Try running 'pkg update' first. pkg: sqlite: library routine called out of sequence (pkgdb.c:2251) pkg: repository 'repo-repo1.sqlite' does not exist pkg: sqlite: library routine called out of sequence (pkgdb.c:2350)

When looking in the pkgdb dir I see the following file names: repo-default.sqlite.sqlite and repo-repo1.sqlite.sqlite. Seems that there goes wrong with the extraction/rename. If it matters I'm using a custom PKG_DBDIR and PKG_CACHEDIR.

bapt commented 11 years ago

Fixed thanks for reporting, will be in 1.0.8