You are not logged in.
Yay, first community contribution!
,
, )\
(\,/ )
, , \ ) )
)\ /(_) / , ,
/ \( ( /( , )\
( ( )) ( ) ) )\ / (
\ 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)
Offline
Very interesting
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
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
Offline
hey now i've got copyrights you know . i'll be trying this out.
archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson
Offline
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
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
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
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
@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
Offline
I like this program!
Now that I praised it, I'm becoming a demanding user, who wants new (and maybe useless) features
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
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
< 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)
Offline
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.
Offline
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?
Offline
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
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
this looks very promising, simplicity at its best.. I'll surely follow this utility!
Archlinux on Compaq Presario v5000 laptop
Offline
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
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
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
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...
Offline
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
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! )
Offline
I just installed arson v0.6.2 and this is a great app! Thnaks
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
i'm gettin the same thing as sigi (nice avatar there sigi btw).
Thanks
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.
Offline
@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
Last edited by zenix (2008-03-30 23:40:11)
Offline
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
Offline
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!
Again, to those who can't get color: I think I have it fixed! (again... )
Offline