[Bug 198900] ports-mgmt/pkg: pkg version show status '?' when using multiple repos
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Mar 25 15:04:30 UTC 2015
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198900
Bug ID: 198900
Summary: ports-mgmt/pkg: pkg version show status '?' when using
multiple repos
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: Individual Port(s)
Assignee: portmgr at FreeBSD.org
Reporter: elofu17 at hotmail.com
Assignee: portmgr at FreeBSD.org
Flags: maintainer-feedback?(portmgr at FreeBSD.org)
'pkg version' lists a port as missing in my repo(s) even though it is not.
To reproduce:
I update the indexes, just for the sake of it:
> pkg update -f
Updating FreeBSD repository catalogue...
Fetching meta.txz: 100% 968 B 1.0kB/s 00:01
Fetching packagesite.txz: 100% 5 MiB 2.7MB/s 00:02
Processing entries: 100%
FreeBSD repository update completed. 24022 packages processed
Updating sentor repository catalogue...
Fetching meta.txz: 100% 292 B 0.3kB/s 00:01
Fetching packagesite.txz: 100% 102 KiB 104.6kB/s 00:01
Processing entries: 100%
sentor repository update completed. 340 packages processed
I delete the problematic port, just for the sake of it:
> pkg delete bacula5-client
...
I reinstall it, from my repo:
> pkg install -r sentor bacula5-client
New packages to be INSTALLED:
bacula5-client: 5.2.12_1 [sentor]
I can see that it is annotated to my repo:
> pkg info -A bacula5-client
bacula5-client-5.2.12_1:
repo_type : binary
repository : sentor
So far everything is good.
But, if I run:
> pkg version | grep '?'
bacula5-client-5.2.12_1 ?
This tells me that the installed port bacula5-client-5.2.12_1 is not present in
neither repo 'sentor' nor 'FreeBSD'.
Strange, since I just installed it from 'sentor'.
I was expecting a line like this:
bacula5-client-5.2.12_1 =
If I check the version against each remote repo, everything looks OK:
> pkg version -Rr sentor | grep bacula
bacula5-client-5.2.12_1 =
> pkg version -Rr FreeBSD | grep bacula
bacula5-client-5.2.12_1 =
The port apparently exists in both 'sentor' and 'FreeBSD', so why do 'pkg
version' say that it can't find the port in the local index?
Bug?
The machine uses two repos, 'FreeBSD' and 'sentor':
> cat /usr/local/etc/pkg/repos/FreeBSD.conf
FreeBSD: { enabled: yes, priority: 1 }
> cat /usr/local/etc/pkg/repos/sentor.conf
sentor: {
url: "pkg+http://blahblah/93amd64-default/",
mirror_type: "srv",
enabled: yes,
priority: 15
}
(I also use /usr/local/etc/pkg.conf:CONSERVATIVE_UPGRADE: YES to make ports
sticky to each repo)
/Elof
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list