[pacman-dev] package PKGINFO format vs DB format

Xavier shiningxc at gmail.com
Wed Sep 19 14:37:18 EDT 2007


On Wed, Sep 19, 2007 at 01:25:40PM -0500, Aaron Griffin wrote:
> On 9/19/07, Miklos Vajna <vmiklos at frugalware.org> wrote:
> > On Wed, Sep 19, 2007 at 12:49:12AM -0500, Aaron Griffin <aaronmgriffin at gmail.com> wrote:
> > > [
> > >     foo = bar
> > >     baz = blah
> > > ]
> >
> > then
> >
> > %FOO%
> > bar
> > baz
> >
> > would become
> >
> > foo = bar baz
> >
> > ?
> >
> > won't it result in *very* long lines for the filelists?
> 
> Well actually, the current format just repeats. So it'd be:
> 
> foo = bar
> foo = baz
> 
> In a way it makes sense, because, this is a DB entry really... you
> wouldn't be resetting the variable. But as a programmer it *does* read
> a little funny.
> 

I think it'll look rather odd, especially for the big file lists.

files = usr/share/locale/fr/
files = usr/share/locale/fr/LC_MESSAGES/
files = usr/share/locale/fr/LC_MESSAGES/libalpm.mo
files = usr/share/locale/fr/LC_MESSAGES/pacman.mo
files = usr/share/locale/hu/
files = usr/share/locale/hu/LC_MESSAGES/
files = usr/share/locale/hu/LC_MESSAGES/libalpm.mo
files = usr/share/locale/hu/LC_MESSAGES/pacman.mo
files = usr/share/locale/it/
files = usr/share/locale/it/LC_MESSAGES/
files = usr/share/locale/it/LC_MESSAGES/libalpm.mo
files = usr/share/locale/it/LC_MESSAGES/pacman.mo
files = usr/share/locale/pl_PL/
files = usr/share/locale/pl_PL/LC_MESSAGES/
files = usr/share/locale/pl_PL/LC_MESSAGES/libalpm.mo
files = usr/share/locale/pl_PL/LC_MESSAGES/pacman.mo
files = usr/share/locale/pt_BR/
files = usr/share/locale/pt_BR/LC_MESSAGES/
files = usr/share/locale/pt_BR/LC_MESSAGES/libalpm.mo
files = usr/share/locale/pt_BR/LC_MESSAGES/pacman.mo
files = usr/share/locale/ru_RU/
files = usr/share/locale/ru_RU/LC_MESSAGES/
files = usr/share/locale/ru_RU/LC_MESSAGES/libalpm.mo
files = usr/share/locale/ru_RU/LC_MESSAGES/pacman.mo

But maybe it isn't that bad after all.
The second inconvenient is the additional space used.

On the other hand, it'll be much easier to work with using grep,
like Romashka already mentioned.

With :
files = usr/share/locale/ru_RU/LC_MESSAGES/libalpm.mo
files = usr/share/locale/ru_RU/LC_MESSAGES/pacman.mo
...
backup = etc/pacman.conf  c176542c3e4c13044e57ba65e47f3e69
backup = etc/makepkg.conf 318712d2c8ee9196f395b60ceb13fe35
...

Then I could just grep backup /var/lib/pacman/local/*/files
to see all the backup entries.

I wanted to do that because of the little bug in pacman 3.1 that only filled
the first md5sum, to check which packages are affected in my db :)




More information about the pacman-dev mailing list