[pacman-dev] [PATCH] contrib/paclist: rewrite in bash
The original concept for this script was a bash implementation, but
turned out to be unreasonable at the time due to the efficiencies of the
database format. Since those have been resolved, we can rewrite this in
bash as a much simpler script.
Signed-off-by: Dave Reisner
On 30/06/11 13:52, Dave Reisner wrote:
The original concept for this script was a bash implementation, but turned out to be unreasonable at the time due to the efficiencies of the database format. Since those have been resolved, we can rewrite this in bash as a much simpler script.
Signed-off-by: Dave Reisner
--- Restore this script it its original intended glory in beautiful bash. I opted for the gettext bindings to preserve pacman error messages.
Add the gettext part in the commit message as it is a good feature to mention. Also, can we get the version numbers back? I find them quite useful.
paclist testing avahi 0.6.30-4 cronie 1.4.8-1 ...
./contrib/paclist testing avahi cronie ...
Allan
The original concept for this script was a bash implementation, but
turned out to be unreasonable at the time due to the efficiencies of the
database format. Since those have been resolved, we can rewrite this in
bash as a much simpler script.
All the action happens in a single line, but we add extend this a
little, binding to gettext to keep our pacman translations intact.
Signed-off-by: Dave Reisner
On 30/06/11 23:10, Dave Reisner wrote:
The original concept for this script was a bash implementation, but turned out to be unreasonable at the time due to the efficiencies of the database format. Since those have been resolved, we can rewrite this in bash as a much simpler script.
All the action happens in a single line, but we add extend this a little, binding to gettext to keep our pacman translations intact.
Signed-off-by: Dave Reisner
paclist
Almost signed-off-by: Allan Can we keep the old usage message too? Or at least something close to it. allan@mugen /home/arch/code/pacman (working) paclist - List all packages installed from a given repo Usage: paclist <repo> Example: paclist testing allan@mugen /home/arch/code/pacman (working)
./contrib/paclist usage: paclist <repo>
On Thu, Jun 30, 2011 at 11:29:50PM +1000, Allan McRae wrote:
On 30/06/11 23:10, Dave Reisner wrote:
The original concept for this script was a bash implementation, but turned out to be unreasonable at the time due to the efficiencies of the database format. Since those have been resolved, we can rewrite this in bash as a much simpler script.
All the action happens in a single line, but we add extend this a little, binding to gettext to keep our pacman translations intact.
Signed-off-by: Dave Reisner
Almost signed-off-by: Allan
Can we keep the old usage message too? Or at least something close to it.
paclist
allan@mugen /home/arch/code/pacman (working) paclist - List all packages installed from a given repo Usage: paclist <repo> Example: paclist testing
allan@mugen /home/arch/code/pacman (working)
./contrib/paclist usage: paclist <repo>
And spoil all the magic? What hidden treasures might be unearthed by this wonderous tool of mischief and mayhem? WHO KNOWS?! There's only one way to find out! $ paclist gold! error: repository "gold!" was not found. Yeah, yeah. It's added. d
participants (2)
-
Allan McRae
-
Dave Reisner