Re: pkg does not update the repo catalogue

From: Baptiste Daroussin <bapt_at_FreeBSD.org>
Date: Mon, 7 Dec 2015 13:26:40 +0100
On Mon, Dec 07, 2015 at 01:25:09PM +0100, olli hauer wrote:
> On 2015-12-07 09:50, Matthias Apitz wrote:
> > 
> > Hello,
> > 
> > This is with 11-CURRENT and ports from July this year; I have the
> > packages which I build with poudriere on some other host in a dir
> > /usr/PKGDIR.20150726 and added 8 new packages there, the total number is
> > now 1691:
> > 
> > # ls *.txz | egrep -v 'packagesite.txz|meta.txz|digests.txz' | wc -l 
> >     1691
> > 
> > My repo definition is:
> > 
> > # cat /usr/local/etc/pkg/repos/myrepo.conf
> >            FreeBSD: {
> >                url: "file:/usr/PKGDIR.20150726",
> >                enabled: true,
> >            }
> > 
> > When I now want to update the 8 new packages to the repo catalogue, they
> > are not added (i.e. the number stays with 1683 and I also can not
> > install them with 'pkg instal ...'):
> > 
> > # pkg -v
> > 1.5.5
> > # pkg -R /usr/local/etc/pkg/repos/ update -f
> > Updating FreeBSD repository catalogue...
> > Fetching meta.txz: 100%    260 B   0.3kB/s    00:01    
> > Fetching packagesite.txz: 100%  382 KiB 391.6kB/s    00:01    
> > Processing entries: 100%
> > FreeBSD repository update completed. 1683 packages processed.
> > 
> > What I'm missing here?
> > 
> > Thanks
> > 
> > 	matthias
> 
> Hi Matthias,
> 
> I see some possible issues.
> 
> - repo has same name as the official one (FreeBSD, see `cat /etc/pkg/FreeBSD.conf')
> - file:/$path should be file:///$path

pkg should have yelled about that, I will fix that.

> - repo catalog was not updated with command `pkg repo'
> - REPO_AUTOUPDATE = true/false (in pkg.conf)
> 
> Does your repo match the output of the command
> $ pkg -vv (all below Repositories:)
> 
> 

Best regards,
Bapt

Received on Mon Dec 07 2015 - 11:26:46 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:01 UTC