You are not logged in.

#1 2009-07-14 13:05:35

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

slurpy - An AUR search/download/update helper in Python

Some of you guys from IRC already know about slurpy, but I've tagged a release and uploaded a stable PKGBUILD to the AUR.

AUR packages:
slurpy - should remain usable, but will not contain latest bug fixes until the next release
slurpy-git - latest and greatest, but will also contain the latest bugs I've introduced wink

(Below is shamelessly ripped from my project page)

Preamble

slurpy is another AUR helper script written in Python. I've been an advocate of arson since it's inception but the fact that it's written in Ruby always bugged me. Since I am much more comfortable in Python I decided to write a port. The arson code base changed a lot as I worked on this and I decided to continue the direction I was heading rather than rewriting the port to match. slurpy is where I ended up.

What it is

    * Faster searching, downloading, retrieving info, and checking for updates for AUR packages.
    * Dependency resolution for packages in the AUR.
    * Written in Python with only one optional dependency - python-cjson (makes processing faster with large result sets).
    * Colorized output based on pacman-color's color.conf. Color is disabled by default and must be enabled with -c|--color.
    * Easy downloading of package source through the ABS for packages in the official repositories. (Very experimental!!)

What it isn't

    * slurpy is not a way to automate the download-build-install process. It is only a means to manage PKGBUILDS. If you are looking for an automatic installer, check out yaourt.
    * slurpy is not a `prettyfier'. Output is mostly modeled after pacman output to keep a uniform feel across tools.

Other thoughts

    * I've tested this quite a bit, but I know there are many bugs I've missed. I could use a few testers giving quality feedback. If you've got a minute, check it out and let me know what you think.


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#2 2009-07-14 22:19:42

Square
Member
Registered: 2008-06-11
Posts: 435

Re: slurpy - An AUR search/download/update helper in Python

Great work rson. Slurpy is by far my favorite AUR search helper.
Perhaps we could use this thread for suggestions on improvements and such? wink


 

Offline

#3 2009-07-14 23:30:16

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: slurpy - An AUR search/download/update helper in Python

I like it thanks smile


neutral

Offline

#4 2009-07-16 00:35:54

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: slurpy - An AUR search/download/update helper in Python

Thanks for the feedback guys.

@Square: definately.  I needed a place to be able to discuss my development issues (such as the new behavior we discussed on IRC) with more people than the usual -offtopic customers.  This should do fine smile

@all: I have just pushed a bugfix release and updated the packages in the AUR.  It fixes issue/ticket #1 on github.  More info in the commit logs.


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#5 2009-08-27 19:54:45

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: slurpy - An AUR search/download/update helper in Python

Just an update.  I released v2.0.0 today.  Biggest changes are the elimination of the slow and crappy ABS support, and the fact that slurpy no longer deals with community packages (because of the removal of community packages from the AUR).

Plans for the next release include uploading packages to the AUR via --push, as well as some simple regex based searching (bar$, ^foo, maybe a few others).

Anything else anyone thinks would fit well in slurpy?


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#6 2009-09-19 22:01:14

Evanlec
Member
From: NH, USA
Registered: 2007-12-16
Posts: 141
Website

Re: slurpy - An AUR search/download/update helper in Python

Just installed it today:


[~]$:slurpy --update
Traceback (most recent call last):
  File "/usr/bin/slurpy", line 585, in <module>
    Slurpy(*parser.parse_args()).run()
  File "/usr/bin/slurpy", line 382, in run
    for pkg, version in self.update():
  File "/usr/bin/slurpy", line 443, in update
    if self.update_available(pkg['Name'], pkg['Version']):
  File "/usr/bin/slurpy", line 492, in update_available
    if scm_passed and scm_installed:
UnboundLocalError: local variable 'scm_passed' referenced before assignment

Last edited by Evanlec (2009-09-19 22:01:26)

Offline

#7 2009-09-20 15:20:43

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: slurpy - An AUR search/download/update helper in Python

I've sent you a message on github, but in case you don't go there much, can you post the output of `pacman -Qm'?  You must have a package installed that has a weird version number that I haven't seen before.


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#8 2009-09-30 11:37:27

GGLucas
Member
Registered: 2008-03-13
Posts: 113

Re: slurpy - An AUR search/download/update helper in Python

Having chromium-snapshot-64-last installed gives me that error message here. In pacman -Qm it appears as just "chromium-snapshot-64-last 27490-7", but it breaks slurpy.

Offline

#9 2009-09-30 12:21:10

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: slurpy - An AUR search/download/update helper in Python

Evanlec and I talked about this issue on IRC.  I know why it breaks, I'm not sure how to handle it.  That cromium package uses a pkgver that is grabbed from the cromium webpage, but the AUR doesn't know how to handle that pkgver.  This causes the AUR to return a version number of -7 (negative $pkgrel).  This is more of an issue with the way the PKGBUILD is written and what the AUR can support, but I'll see if I can implement an elegant work around for this.

I've run into this before with other packages too.  My conclusion was that the best way to deal with it is to ignore any packages who's verson number returns as negative, or who's version number slurpy doesn't understand.  This would mean that there are possibly packages installed on your system that need to be updated that slurpy isn't showing updates for.  In that case slurpy show a warning message saying that it can't determine the latest version of that package.  Thoughts?

Last edited by rson451 (2009-09-30 12:27:14)


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#10 2009-10-07 13:59:20

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: slurpy - An AUR search/download/update helper in Python

GGLucas, Evanlec:  I've pushed a change to github that "fixes" this.  It prints out a warning saying it is ignoring any package that has a negative $pkgver.  The caveat is that you must manually check for updates for these packages.

If anyone has a better idea of how to handle this, I'm open to suggestions.

Last edited by rson451 (2009-10-07 14:02:18)


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#11 2010-01-08 16:53:47

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

Re: slurpy - An AUR search/download/update helper in Python

I have discovered slurpy only today and it is the best and safest aur searcher around! Keep it simple: it does not require a config file since any persistent option can be defined easily with a shell alias.
Thanks for it.


Mortuus in anima, curam gero cutis

Offline

Board footer

Powered by FluxBB