You are not logged in.
Hi
I've been using this script in Perl Conky to check on updates. It works well.
It's not mine - I got it here;
http://bbs.archlinux.org/viewtopic.php?id=57291
#!/usr/bin/perl
## script by Xyne
## http://bbs.archlinux.org/viewtopic.php?id=57291
use strict;
use warnings;
my $n = (`pacman -Qu | wc -l`);
chomp ($n);
if ($n == 0)
{
print "System up to date"
}
elsif($n == 1)
{
print "1 new package"
}
else
{
print "$n new packages (inc. IgnorePkg) "
}
I have some packages listed in IgnorePkg in pacman.conf - is there a way to exclude them from the packages counted in $n?
I thought something like this would help but I don't see how to take only part of a line from IgnorePkg
http://www.perlfect.com/articles/perlfile.shtml
Thanks for any help
EDIT I added a --ignore clause to the pacman query. Seems to have worked. Sorry to waste your time.
Last edited by Bazzaah (2012-07-04 09:25:46)
Offline