[pacman-dev] [PATCH] '-Spp and -Supp' options were added to generate uri list without the downloaded package uris

Xyne xyne at archlinux.ca
Sat Sep 5 16:16:04 EDT 2009


> >> Instead of adding several options, wouldn't it be possible to let "-p"
> >> accept a string argument with formatting information similar to the way
> >> the date command works. This would be extensible in the future and
> >> could include the following interpretted sequences (among others)
> >>
> >> %u - url
> >> %n - pkgname
> >> %v - pkgver-pkgrel
> >> %s - size
> >
> >
> > %r - repo
> >
> > I think the repo would be very useful as well.
> >
> >
> 
> btw the copy/paste were my previous --print patch which did not have
> the --print-format option.
> my new patch has %u %n %v, and adding %s and %r will be easy as well.
> one problem is that url and repo are only available for the -S operation.
> 
> or maybe url could just be replaced by the filename for -U and -R.
> and repo by 'local'
> 

I think using "local" for "%r" is a good idea. As for "%u", maybe it
should be changed to "% l" for "location". It could return the full
path to the package archive when using -U. It's relatively useless for
"-R" but I agree that it should return something for the sake of
uniformity. Maybe the full path to the local database entry would be
useful, e.g. /var/lib/pacman/local/foo-3.5-1


On a tangent, thinking about the printed output of "-U", Is there any
reason that it doesn't resolve dependencies?


More information about the pacman-dev mailing list