ketchup: fixed problem listing supported kernel trees

This commit is contained in:
Jukka Heino 2006-04-04 03:41:50 +00:00
parent 75a532303a
commit 3aadd48cbf
3 changed files with 18 additions and 2 deletions

View File

@ -1 +1,2 @@
1653d39ea2ba534543dd87b133502e24 ketchup-0.9.6.tar.bz2
d086689be24172c9d9110cdf9f75dcc3 ketchup-list.patch

View File

@ -6,10 +6,12 @@
name=ketchup
version=0.9.6
release=1
source=(http://www.selenic.com/$name/$name-$version.tar.bz2)
release=2
source=(http://www.selenic.com/$name/$name-$version.tar.bz2 \
ketchup-list.patch)
build() {
patch -p1 < $SRC/ketchup-list.patch
install -D -m 0755 $name $PKG/usr/bin/$name
install -D -m 0644 $name.1 $PKG/usr/man/man1/$name.1
}

View File

@ -0,0 +1,13 @@
--- a/ketchup Sun Mar 5 11:06:59 2006 -0600
+++ b/ketchup Sun Mar 5 11:10:11 2006 -0600
@@ -687,7 +687,10 @@ if options["list-trees"]:
l = version_info.keys()
l.sort()
for tree in l:
- lprint(tree, ["(unsigned)","(signed)"][version_info[tree][3]])
+ if version_info[tree][3] == 0:
+ lprint(tree, "(unsigned)")
+ else:
+ lprint(tree, "(signed)")
lprint(" " + version_info[tree][4])
sys.exit(0)