Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Dec 2014 08:15:34 -0500
From:      Alejandro Imass <aimass@yabarana.com>
To:        Matthew Seaman <matthew@freebsd.org>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: pkg versions don't match
Message-ID:  <CAHieY7R1GHEtFK1J-akxPGEVa=fryBssf5zLUWyz_r52HR2i_g@mail.gmail.com>
In-Reply-To: <5496A595.8090702@FreeBSD.org>
References:  <CAHieY7TwrW6y7dO1mFCEJgmt923_0ci1s5VJbo0XzDG5H0e7pQ@mail.gmail.com> <CAGZBXN_1P=eHm8FKsCyzT%2BtY8cF05Fi4O5-6FOcAxi3ckZp1Mw@mail.gmail.com> <CAHieY7Sct5KOycXwY5zV=DQkOHQ79Q2tRPYWQjn2XhsLpdQfWw@mail.gmail.com> <54941E41.3040807@hiwaay.net> <CAHieY7RRwX8a9kOHuyboOPH2ZYmHFuK6xLa9MSd-TAT15Zey4w@mail.gmail.com> <CA%2BtpaK0Z4WhXdz5ZhAEo=5ea-Q157h22c11y=2UGpKeaqX9z6w@mail.gmail.com> <CAHieY7RZ2X9Nn5E4Fx7nfRq7HsLkmb8AgYaSRs-rsBAxXVUS4Q@mail.gmail.com> <5496A595.8090702@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Thanks for the thorough explanation!

On Sun, Dec 21, 2014 at 5:48 AM, Matthew Seaman <matthew@freebsd.org> wrote:

> On 21/12/2014 02:25, Alejandro Imass wrote:
> > Yeah but something doesn't seem quite right here. The option -f "force"
> to
> > check origin versions seems a bit obscure. If -f is needed for update to
> >
>

[...]


> When pkg(8) updates the repo, it does a series of things.  Firstly it
> downloads a copy of the repo catalogue -- that's a compressed file of
> JSON data with selected bits of package metadata for all of the packages
> in the repo.  In order to avoid this resulting in a lot of unnecessary
> work, pkg(8) basically checks to ensure that the timestamp on the
> repository catalogue is unchanged using the standard HTTP 304 'Not
> modified' status code mechanism.  If it finds the catalogue hasn't
> changed since the last time it downloaded it, then it stops there.
>
>
This doesn't seem to be working very well or else why did my pkg keep
saying it was up to date and yet the packages in remote had clearly changed
?



[...]


There is one circumstance when this is not true however: when pkg(8)
> itself is updated, the schema of the sqlite database may change.  The
> format of the catalogue may similarly change, but it is carefully done
> to remain backwards compatible with both older and newer versions of
> pkg(8).  Changes to the catalogue format and to the sqlite schemas are
> mostly handled completely transparently to the user, but occasionally,
> as in this case, forcing the update is required to populate the
> new-style repo catalogue.
>

pkg did not get updated until after I forced pkg update so something else
did not work very well at least in my case (timezone issues?). In any case
the update process you describe with the metadata did not work.



Best,

-- 
Alejandro Imass



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHieY7R1GHEtFK1J-akxPGEVa=fryBssf5zLUWyz_r52HR2i_g>