You are not logged in.

#1 2008-03-29 04:24:16

zenix
Member
From: Earth - Save it!
Registered: 2007-08-05
Posts: 104
Website

arson - The HOT AUR search helper

Yay, first community contribution! big_smile

                ,
           ,   )\
           (\,/  )
     ,    , \ ) )
     )\  /(_)  / ,        ,
    /  \(     ( /(  ,     )\
   ( (  )) (   )  ) )\   / (
    \   V    ) `   `  ) (   )
    _) _  `__ ___' __(  ) _/
   / _` | '__/ __|/ _ \| '_ \
  | (_| | |  \__ \ (_) | | | |
   \__,_|_|  |___/\___/|_| |_|
   the AUR search helper!

Thanks rson for this ascii art!

arson v0.8.7 - The HOT AUR search helper!
Usage: arson [options] -COMMAND KEYWORD1 [KEYWORD2 ...]
Where -COMMAND is one of:
    -D, --Download                   Download the AUR package specified
    -S, --Search                     Search AUR for a package name
    -I, --Info                       Get information about a package
    -U, --Upgrade                    List of foreign packages which have an
                                     update available for them in AUR


Download options
        --save-to [PATH]             Directory for arson to download AUR
                                     packages [Default: Current directory]
    -k, --keep                       Keep the .tar.gz after extracting it 
                                     [Default: Delete]
    -f, --force                      Overwrite the package's extraction target
                                     if it exists. [Default: Don't]
    -r, --[no-]recursive             Check the dependency list for other AUR
                                     packages. [Default: Yes]


Upgrade options
        --foreign [REPO]             Set all packages within a repository as
                                     foreign, to be included in the
                                     upgrade search. This can be repeated
                                     multiple times. [Default: None]


Info options
    -l, --[no-]long                  Use a more tabular display for output


Generic options
    -v, --[no-]verbose               Run verbosely
    -c, --no-color                   Supress color output [Default: No]
    -V, --version                    Display the version number
    -h, --help                       Display this help message
        --more-help                  Display even more help

Arson is a cli AUR searcher and downloader, written in Ruby. It allows you to search the AUR for a package you want, and download it. It does NOT automatically install the downloaded package. It can extract it, but not install. Searching for a package also searches through pacman's db cache (rather than going to each mirror and querying those).

Requirements:
ruby
rubygems
Ruby JSON gem (To install it: gem install json)
Ruby Facets gem (To install it: gem install facets)

Get it while it's hot! Download from AUR: http://aur.archlinux.org/packages.php?ID=16021

Last edited by zenix (2008-12-22 11:17:39)


I made an AUR helper once.
I also go by evaryont and nogweii elsewhere on the internet.
Check out my projects and packages.

Offline

#2 2008-03-29 10:43:50

wain
Member
From: France
Registered: 2005-05-01
Posts: 289
Website

Re: arson - The HOT AUR search helper

Very interesting smile

I just have an error:

arson -S something
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- json/add/core (LoadError)
    from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
    from /usr/bin/arson:9

Offline

#3 2008-03-29 13:56:06

zenix
Member
From: Earth - Save it!
Registered: 2007-08-05
Posts: 104
Website

Re: arson - The HOT AUR search helper

wain, did you make sure to install the ruby JSON gem?

gem install json

There are 2 types of the gem, a C Ruby extension, and a pure ruby extension. Choose either one, arson doesn't care. The C extension is faster, though smile


I made an AUR helper once.
I also go by evaryont and nogweii elsewhere on the internet.
Check out my projects and packages.

Offline

#4 2008-03-29 15:24:26

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

Re: arson - The HOT AUR search helper

hey now i've got copyrights you know smile.  i'll be trying this out.


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

Offline

#5 2008-03-29 16:03:33

wain
Member
From: France
Registered: 2005-05-01
Posts: 289
Website

Re: arson - The HOT AUR search helper

zenix wrote:

There are 2 types of the gem, a C Ruby extension, and a pure ruby extension. Choose either one, arson doesn't care. The C extension is faster, though smile

ok thanks. I thought that everything would be installed thanks to PKGBUILD's depends :-D
It works ! and it's fast. I hope that the developers are going to add all informations in json (vote status, last update, users comments etc...)

Offline

#6 2008-03-29 17:48:25

venox
Member
From: Curitiba, Brazil
Registered: 2003-08-23
Posts: 137
Website

Re: arson - The HOT AUR search helper

Great application! I hate having to use aurbuild or yaourt to download packages. I just like to download the tarballs to my ~/download/pkgs and build them myself wink

Suggestions:
- You could make "--save-to ." default, so we don't need to "arson -D package --save-to ."
- Is `gem install json` really needed? I'm not a ruby guy, but maybe there's a way to include that on the deps or something.

Offline

#7 2008-03-30 00:03:20

zenix
Member
From: Earth - Save it!
Registered: 2007-08-05
Posts: 104
Website

Re: arson - The HOT AUR search helper

@rson451: lol I completely forgot about you when I chose the name. Hope you enjoy

@wain, venox: gem install json is required, unfortunately. The problem is that gem manages it's libraries separately from pacman. If someone could figure a way to, say, make an AUR script that would make gem + pacman happy, I'd love to hear it, and I could make a ruby-gem-json package wink


I made an AUR helper once.
I also go by evaryont and nogweii elsewhere on the internet.
Check out my projects and packages.

Offline

#8 2008-03-30 00:23:14

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: arson - The HOT AUR search helper

I like this program!

Now that I praised it, I'm becoming a demanding user, who wants new (and maybe useless) features smile
So, I'd love to see:
- default --save-to . (as venox)
- some colors (essentially just somehow highlight package names), it helps me a lot when the list of found packages is long

Offline

#9 2008-03-30 02:36:51

zenix
Member
From: Earth - Save it!
Registered: 2007-08-05
Posts: 104
Website

Re: arson - The HOT AUR search helper

Ask and you shall receive. Uploaded version 0.6.1! See ChangeLog for details. (Installs to /usr/share/doc/arson)

Added output, reduced download output
-v/--verbose now does something!
COLORS! Added! Optional ruby-terminfo dependency added
--save-to defaults to the current directory
arson.install alerts you to the optional dependencies as well as the JSON gem. Still auto installs when it's first installed though.
Added ability to arson to have it delete the pkg after extracting it. This is pointless to enable if you don't have minitar installed already, though, due to current logic (which is how it should be, IMO)

To those who downloaded v0.6 - Sorry about the symlink! 0.6.1 fixes that. ha ha, I failed smile

< zenix> !give zenix fail
< phrik> zenix: zenix wanted you to have this fail: http://img.phraktured.net/funny/fail.jpg

- EDIT: I uber fail. Uploaded 0.6.1-2, I forgot to update the version number in the script itself ><

Last edited by zenix (2008-03-30 02:43:15)


I made an AUR helper once.
I also go by evaryont and nogweii elsewhere on the internet.
Check out my projects and packages.

Offline

#10 2008-03-30 03:41:25

Sigi
Member
From: Thurgau, Switzerland
Registered: 2005-09-22
Posts: 1,131

Re: arson - The HOT AUR search helper

Looks nice but I get this:

$ arson -V    
arson v0.6.1
$ arson -S arson
/usr/bin/arson:135:in `<<': can't convert nil into String (TypeError)
    from /usr/bin/arson:135:in `colorful'
    from /usr/bin/arson:134:in `each'
    from /usr/bin/arson:134:in `colorful'
    from /usr/bin/arson:149:in `aur_search'
    from /usr/bin/arson:224

Haven't been here in a while. Still rocking Arch. smile

Offline

#11 2008-03-30 04:45:28

zenix
Member
From: Earth - Save it!
Registered: 2007-08-05
Posts: 104
Website

Re: arson - The HOT AUR search helper

hm, it works fine for me. That's the line that's suppose to produce the "Found # results"

Can you please tell me what version of Ruby you're running? Also, can you paste line 149 of /usr/bin/arson?


I made an AUR helper once.
I also go by evaryont and nogweii elsewhere on the internet.
Check out my projects and packages.

Offline

#12 2008-03-30 04:46:19

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: arson - The HOT AUR search helper

I get the same as Sigi. -c switch doesn't help.
With ruby-terminfo installed, it gives (both with and without -c switch):

$ arson -S arson   
/usr/lib/ruby/site_ruby/1.8/terminfo.rb:80:in `tigetstr': canceled or absent string capability (TermInfo::TermInfoError)
        from /usr/lib/ruby/site_ruby/1.8/terminfo.rb:80:in `control_string'
        from /usr/lib/ruby/site_ruby/1.8/terminfo.rb:43:in `control_string'
        from /home/jan/bin/arson:26

EDIT: ruby 1.8.6 (2008-03-03 patchlevel 114) [x86_64-linux]
line 149:    puts "Found #{colorful(list.length.to_s,:red)} results"

Last edited by bender02 (2008-03-30 04:49:15)

Offline

#13 2008-03-30 04:46:38

SpookyET
Member
Registered: 2008-01-27
Posts: 410

Re: arson - The HOT AUR search helper

I'm trying to figure out what exactly this script is trying to solve.

Yaourt checks and downloads dependencies. Is your script doing that? Does it indicated outdated and orphaned packages?

Last edited by SpookyET (2008-03-30 04:47:43)

Offline

#14 2008-03-30 05:43:49

blu3ness
Member
From: Edmonton, Canada
Registered: 2007-12-28
Posts: 169

Re: arson - The HOT AUR search helper

this looks very promising, simplicity at its best.. I'll surely follow this utility!


Archlinux on Compaq Presario v5000 laptop smile

Offline

#15 2008-03-30 10:32:08

sunn
Member
From: Norway
Registered: 2007-10-24
Posts: 41

Re: arson - The HOT AUR search helper

bender02 wrote:

I get the same as Sigi. -c switch doesn't help.
With ruby-terminfo installed, it gives (both with and without -c switch):

$ arson -S arson   
/usr/lib/ruby/site_ruby/1.8/terminfo.rb:80:in `tigetstr': canceled or absent string capability (TermInfo::TermInfoError)
        from /usr/lib/ruby/site_ruby/1.8/terminfo.rb:80:in `control_string'
        from /usr/lib/ruby/site_ruby/1.8/terminfo.rb:43:in `control_string'
        from /home/jan/bin/arson:26

EDIT: ruby 1.8.6 (2008-03-03 patchlevel 114) [x86_64-linux]
line 149:    puts "Found #{colorful(list.length.to_s,:red)} results"

Running arson in urxvt, I get the same error. But for whatever reason, it works fine in Xfce's Terminal. Ruby-terminfo doesn't like urxvt?
EDIT: ruby 1.8.6 (2008-03-03 patchlevel 114) [i686-linux]

Last edited by sunn (2008-03-30 10:41:49)

Offline

#16 2008-03-30 10:58:04

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

Re: arson - The HOT AUR search helper

i'm gettin the same thing as sigi (nice avatar there sigi btw).

[randy@voodoo ~]$ arson -S dvtm
/usr/bin/arson:135:in `<<': can't convert nil into String (TypeError)
        from /usr/bin/arson:135:in `colorful'
        from /usr/bin/arson:134:in `each'
        from /usr/bin/arson:134:in `colorful'
        from /usr/bin/arson:149:in `aur_search'
        from /usr/bin/arson:224
[randy@voodoo ~]$

i only installed arson, ruby, rubygems, and the json gem.

[randy@voodoo ~]$ arson -V
arson v0.6.1
[randy@voodoo ~]$ ruby -v
ruby 1.8.6 (2008-03-03 patchlevel 114) [i686-linux]
[randy@voodoo ~]$ gem -v
1.0.1
[randy@voodoo ~]$

<snip, i'm retarded>
oh also is there a .install file for this cause i didn't see one.  sorry for being annoying zenix smile

Last edited by rson451 (2008-03-30 12:51:48)


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

Offline

#17 2008-03-30 12:45:56

zenix
Member
From: Earth - Save it!
Registered: 2007-08-05
Posts: 104
Website

Re: arson - The HOT AUR search helper

Alright, thanks a LOT to rson! arson v0.6.2 is here and it seems to WORK!

Download at AUR. For some reason, arson can't download itself. See: http://bugs.archlinux.org/task/10016?pr … &pagenum=2 So you'll have to download + install manually. Sorry, but I have no control over that, I do so hope it's fixed... hmm


I made an AUR helper once.
I also go by evaryont and nogweii elsewhere on the internet.
Check out my projects and packages.

Offline

#18 2008-03-30 13:17:42

schivmeister
Developer/TU
From: Singapore
Registered: 2007-05-17
Posts: 971
Website

Re: arson - The HOT AUR search helper

Thumbs up from me. Not an automation fan either so I love something that can just grab the tar; nice one.


I need real, proper pen and paper for this.

Offline

#19 2008-03-30 13:37:32

sunn
Member
From: Norway
Registered: 2007-10-24
Posts: 41

Re: arson - The HOT AUR search helper

Arson still doesn't work for me in urxvt - it produces the same error as before:

$ arson -S arson
/usr/lib/ruby/site_ruby/1.8/terminfo.rb:80:in `tigetstr': canceled or absent string capability (TermInfo::TermInfoError)
    from /usr/lib/ruby/site_ruby/1.8/terminfo.rb:80:in `control_string'
    from /usr/lib/ruby/site_ruby/1.8/terminfo.rb:43:in `control_string'
    from /usr/bin/arson:26

It seems to work fine in xterm and xfce Terminal though.
I installed ruby, rubygems, ruby-terminfo (make, sudo make install) and minitar (via the .gem file).

Also, I noticed that passing an invalid option produces a whole array of errors, I don't know if it's intended or not:

$ arson -foo
/usr/lib/ruby/1.8/optparse.rb:1443:in `complete': invalid option: -foo (OptionParser::InvalidOption)
    from /usr/lib/ruby/1.8/optparse.rb:1441:in `catch'
    from /usr/lib/ruby/1.8/optparse.rb:1441:in `complete'
    from /usr/lib/ruby/1.8/optparse.rb:1280:in `parse_in_order'
    from /usr/lib/ruby/1.8/optparse.rb:1247:in `catch'
    from /usr/lib/ruby/1.8/optparse.rb:1247:in `parse_in_order'
    from /usr/lib/ruby/1.8/optparse.rb:1241:in `order!'
    from /usr/lib/ruby/1.8/optparse.rb:1332:in `permute!'
    from /usr/lib/ruby/1.8/optparse.rb:1353:in `parse!'
    from /usr/bin/arson:45:in `opt_parse'
    from /usr/bin/arson:121

Anyway, this looks like a nice utility - once I get it working. (I don't mean to sound harsh, I appreciate your efforts! smile)

Offline

#20 2008-03-30 16:50:58

Purch
Member
From: Finland
Registered: 2006-02-23
Posts: 229

Re: arson - The HOT AUR search helper

I just installed arson v0.6.2 and this is a great app! Thnaks smile

One problem exists, I dont get colored output? I did not install minitar or terminfo and I use rxvt-unicode (kdm terminals do the same).

$ arson -Sv rxvt
Searching for 'rxvt'...
Found 4 results
aur/mrxvt-svn (235-1): Mrxvt (previously known as materm) is a multi-tabbed X terminal emulator based on rxvt code
aur/urxvtcd (1-1): A script to start urxvt (rxvt-unicode) in daemon-client mode
aur/rxvt-unicode-256color (9.02-1): an unicode enabled rxvt-clone terminal emulator (urxvt), with 256 colour support
aur/rxvt (2.6.4-3): A colour vt102 terminal emulator

Offline

#21 2008-03-30 17:53:23

Sigi
Member
From: Thurgau, Switzerland
Registered: 2005-09-22
Posts: 1,131

Re: arson - The HOT AUR search helper

rson451 wrote:

i'm gettin the same thing as sigi (nice avatar there sigi btw).

Thanks smile

Version 0.6.2 seems to work here (I also use urxvt).
Color output isn't working but I don't need this anyway.
Thanks rson461, sunn and zenix to solve this issue.


Haven't been here in a while. Still rocking Arch. smile

Offline

#22 2008-03-30 23:38:49

zenix
Member
From: Earth - Save it!
Registered: 2007-08-05
Posts: 104
Website

Re: arson - The HOT AUR search helper

@sunn, Sigi: Try running arson with TERM=xterm before it, i.e.

TERM=xterm arson -S arson

Also, sunn, please post what TERM is set to. I figure with all this trouble terminfo isn't that great, at least, not the ruby bindings. yeesh

-Edit: Purch, you'd need to install ruby-terminfo for color support to work. See the changelog for the reasons, I feel to lazy to copy/paste from it tongue

Last edited by zenix (2008-03-30 23:40:11)


I made an AUR helper once.
I also go by evaryont and nogweii elsewhere on the internet.
Check out my projects and packages.

Offline

#23 2008-03-30 23:54:05

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: arson - The HOT AUR search helper

I have the same problem as sunn and Sigi. With "TERM=xterm arson -S arson" it works. By default, I have TERM=xterm-256-color.
EDIT: tried some more TERMs, works with 'rxvt-unicode', doesn't with 'linux', 'screen', 'screen-256color'. I guess the ruby-terminfo bindings are not that great.

Last edited by bender02 (2008-03-30 23:57:28)

Offline

#24 2008-03-31 00:06:45

venox
Member
From: Curitiba, Brazil
Registered: 2003-08-23
Posts: 137
Website

Re: arson - The HOT AUR search helper

$ arson -D arson
Found package arson! Downloading it to /home/luiz/download/pkgs...
Error downloading arson: 404 Not Found

Too bad arson can't download itself. Other than that, it's an amazing truly simple tool. I just love how simple it is.

Offline

#25 2008-03-31 01:27:26

zenix
Member
From: Earth - Save it!
Registered: 2007-08-05
Posts: 104
Website

Re: arson - The HOT AUR search helper

Yay! arson v0.6.3 is released!

ChangeLog:

arson v0.6.3 (31March2008)
- Switched from using ruby-terminfo to calling /usr/bin/tput. This should work
for sure now, for those who want color and haven't been getting it yet.
- Added Info command (-I, --Info), it's simply a JSON dump. Nice though for
extensive details on any given package.
- Uploaded arson as arson.tar.gz instead of the name makepkg gave it,
hopefully the URLPath bug will stop now.
- Gracefull handling of invalid arguments
- With the switch to tput vs ruby-terminfo, removed ruby-terminfo dependecy
and added ncurses dependency. Now it's mandatory. YOU WILL HAVE COLOR!

@venox: Known AUR phail. I think I fixed it, try downloading it to update arson! big_smile

Again, to those who can't get color: I think I have it fixed! (again... wink )


I made an AUR helper once.
I also go by evaryont and nogweii elsewhere on the internet.
Check out my projects and packages.

Offline

Board footer

Powered by FluxBB