Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Jul 2017 10:55:59 +0200
From:      Matthias Fechner <idefix@fechner.net>
To:        ports@freebsd.org
Subject:   Pkg does not upgrade if more than one repository is defined
Message-ID:  <4bd07372cbebf842be96c9269ac7e274@fechner.net>

next in thread | raw e-mail | index | archive | help
Dear all,

I have a problem with pkg and I'm not sure if it is a bug in pkg or a 
configuration issue.
I work on new version on ports which are in a separate poudriere 
repository (to be able to easily test it).

I have now two configuration files in /usr/local/etc/pkg/repos, 
poudriere.conf:
poudriere: {
     url: "https://pkg.fechner.net/packages/110amd64-default",
     mirror_type: "pkg+http",
     signature_type: "pubkey",
     pubkey: "/usr/local/etc/ssl/certs/pkg.cert",
     enabled: yes,
     priority: 1
}

this is the standard repo which contains all stable packages.
Now I have a new version (in this case for gitlab) at gitlab.conf:
gitlab: {
     url: "https://pkg.fechner.net/packages/110amd64-gitlab",
     mirror_type: "pkg+http",
     signature_type: "pubkey",
     pubkey: "/usr/local/etc/ssl/certs/pkg.cert",
     enabled: yes,
     priority: 10
}

The priority is higher and some package there have a higher version 
number.

But if I execute now 'pkg upgrade' pkg does not upgrade packages which 
have a higher version from the gitlab repository, but stick to the 
poudriere repository.

I also tried to do a 'pkg update -f; pkg upgrade' but it does not help.

Is there something wrong with my configuration or is this a bug in pkg?


-- 
Thanks
Matthias



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4bd07372cbebf842be96c9269ac7e274>