You are not logged in.
nice script
A small error:
wain ~ $ pak -l openbox
> Searching... /home/wain/scripts/pak: line 100: [: /var/lib/pacman/local/openbox-cvs-20060822-2: binary operator expected
> 3 matches found for key term [ openbox ]
....
Offline
nice script
A small error:
wain ~ $ pak -l openbox > Searching... /home/wain/scripts/pak: line 100: [: /var/lib/pacman/local/openbox-cvs-20060822-2: binary operator expected > 3 matches found for key term [ openbox ] ....
Thanks for trying it out. Strange error, though. Does it do it every time, or only when searching for openbox? Would you mind posting your pacman.conf so I can take a look at it?
psearch - manipulate and refine pacman searches
Offline
Sounds like you need quotes in a [] test. Make sure to _always_ do:
if [ "$some_var" == "blah" ];
instead of
if [ $some_var == "blah" ];
Offline
Sounds like you need quotes in a [] test. Make sure to _always_ do:
if [ "$some_var" == "blah" ];
instead of
if [ $some_var == "blah" ];
Nice catch. My bash skills are crude, I must admit. I'll fix it in a few hours when I get home.
psearch - manipulate and refine pacman searches
Offline
This script is useful, because it's easier to fsearch if you get colored output
Offline
A small error:
wain ~ $ pak -l openbox > Searching... /home/wain/scripts/pak: line 100: [: /var/lib/pacman/local/openbox-cvs-20060822-2: binary operator expected
I updated the code.. see if it works now.
psearch - manipulate and refine pacman searches
Offline
Can you post screens?
Offline
wain wrote:A small error:
wain ~ $ pak -l openbox > Searching... /home/wain/scripts/pak: line 100: [: /var/lib/pacman/local/openbox-cvs-20060822-2: binary operator expected
I updated the code.. see if it works now.
same problem at line 104:
please replace the line with:
elif [ -d "/var/lib/pacman/local/${repNames[$i]}-*" ]; then
@Insane-Boy:
Offline
Looks very nice:) Thanks
Offline
same problem at line 104:
please replace the line with:elif [ -d "/var/lib/pacman/local/${repNames[$i]}-*" ]; then
Done. Thanks
psearch - manipulate and refine pacman searches
Offline
i've added this great script to pactools --> http://aur.archlinux.org/packages.php?d … =1&ID=5907
hope you like to have all pacman related scripts in a single package
Offline
i've added this great script to pactools --> http://aur.archlinux.org/packages.php?d … =1&ID=5907
hope you like to have all pacman related scripts in a single package
Oh, cool. 8) Thanks!
psearch - manipulate and refine pacman searches
Offline
[
please replace the line with:elif [ -d "/var/lib/pacman/local/${repNames[$i]}-*" ]; then
Putting quotes around the wildcard killed the installed version check. The original code worked (?) on most systems, but since some people were having problems with it I rewote the code for that section using strictly pacman to verify a local install of the package. It should be solid now.
psearch - manipulate and refine pacman searches
Offline
Pak recieved a recent update that allows the user to search only installed packages, not installed packages, or upgradeable packages. I also replaced all 'awk' commands with 'cut' commands in an effort to speed it up a little, though it didn't really do much. If anyone else has any suggestions as to get to moving faster then I'm all ears.
Also, if you use this script I suggest you check the wiki (link is in my sig) periodically for updates. All bug fixes and updates are tracked at the bottom of the page.
Thanks again for all of your guys' feedback and suggestions.
psearch - manipulate and refine pacman searches
Offline
looks nice,a good idea should be add support to do aur search
btw really good work
Offline
wain wrote:elif [ -d "/var/lib/pacman/local/${repNames[$i]}-*" ]; then
Putting quotes around the wildcard killed the installed version check.
You could safely do something like:
found=0
for x in /var/lib/pacman/local/${repNames[$i]}-*; do
[ -d "$x" ] && found=1
done
if [ $found -eq 1 ]; then
Offline
You could safely do something like:
found=0 for x in /var/lib/pacman/local/${repNames[$i]}-*; do [ -d "$x" ] && found=1 done if [ $found -eq 1 ]; then
Excellent idea. Once again, you come to my rescue. I'm officially adopting you as my go-to Arch dev.
I'm thinking of looking into reprogramming this thing outside of bash so it can speed up a bit. Unfortunately, the only programming language I have much experience with is Java, so we'll see if that works out.
psearch - manipulate and refine pacman searches
Offline
looks nice,a good idea should be add support to do aur search
btw really good work
It supports aur seaches now.
psearch - manipulate and refine pacman searches
Offline
Something is wrong ...
$ pak -l kernel
> Search complete...
ERROR: Please execute this file using the pak script.
Offline
Something is wrong ...
$ pak -l kernel > Search complete... ERROR: Please execute this file using the pak script.
Did you install it with the PKGBUILD? It gives that error if the Java files isn't given enough arguments. Hm.
psearch - manipulate and refine pacman searches
Offline
Something is wrong ...
$ pak -l kernel > Search complete... ERROR: Please execute this file using the pak script.
Actually, can you do me a favor? Change the first line of /usr/bin/pak from #/bin/bash to:
#/bin/bash -x
.. and post the big chunk of output that starts with "+ java -cp". That'll help determine exactly what's missing from the java execution.
psearch - manipulate and refine pacman searches
Offline
This is weird. Pak works from console, ssh and xfce4. when I got the error I was using KDE. I have to check my KDE settings when I have time.[/url]
Offline
This is weird. Pak works from console, ssh and xfce4. when I got the error I was using KDE. I have to check my KDE settings when I have time.[/url]
That is strange. The only argument that is passed to the Java file that isn't explicitly declared as a variable in the script is $COLUMNS. Try `echo $COLUMNS` from Konsole (if that's what you're using in KDE) and see if it gives any output.
psearch - manipulate and refine pacman searches
Offline
I did more tests with two arch32 machines.
KDE - does not work (konsole, terminal)
gnome - does not work (urxvt, terminal, gnome-terminal)
E17 - does not work (xterm, terminal)
xfce OK (terminal)
consoles (ctrl+alt+F1) OK
ssh remote login OK
Amount of columns (tested with 80 and 209) in the terminal wont affect the result. Gnome and kde may have some java settings that makes pak crash.
Offline