pkg-get: added small fixup for warnings

This commit is contained in:
Simone Rota 2006-07-17 11:04:45 +00:00
parent bce6844e1e
commit 6dec654cf0
3 changed files with 17 additions and 2 deletions

View File

@ -1 +1,2 @@
5ee169f2f99fc501387219b6b96ca9ef pkg-get-0.4.5.tar.gz
c3fb4f7ca868903da78d316be77cca16 pkg-get.patch

View File

@ -6,10 +6,12 @@
name=pkg-get
version=0.4.5
release=1
source=(http://www.varlock.com/files/$name-$version.tar.gz)
release=2
source=(http://www.varlock.com/files/$name-$version.tar.gz \
$name.patch)
build() {
cd $name-$version
patch -p1 < ../$name.patch
make PREFIX=$PKG/usr CFGDIR=$PKG/etc install
}

12
pkg-get/pkg-get.patch Normal file
View File

@ -0,0 +1,12 @@
diff -Nru pkg-get-0.4.5.orig/scripts/pkg-get.pl pkg-get-0.4.5/scripts/pkg-get.pl
--- pkg-get-0.4.5.orig/scripts/pkg-get.pl 2006-07-13 05:04:11.000000000 +0200
+++ pkg-get-0.4.5/scripts/pkg-get.pl 2006-07-17 13:01:37.524719500 +0200
@@ -943,7 +943,7 @@
printf("%-19s %-19s %-19s\n\n","Package","Installed","Available in the repositories");
$gotdiff = 1;
}
- printf("%-19s %-19s %-19s %-19s\n", $pkg{'name'}, $pkg{'instversion'}, $pkg{'version'}."-".$pkg{'release'});
+ printf("%-19s %-19s %-19s\n", $pkg{'name'}, $pkg{'instversion'}, $pkg{'version'}."-".$pkg{'release'});
} elsif ($all) { # yeah, it blows, at least avoid to read the locked state twice.
if ($gotdiff == 0){
print "Differences between installed packages and packages repo:\n\n";