From 3aadd48cbfda19e32eb047632bac6f76b5a4817b Mon Sep 17 00:00:00 2001 From: Jukka Heino Date: Tue, 4 Apr 2006 03:41:50 +0000 Subject: [PATCH] ketchup: fixed problem listing supported kernel trees --- ketchup/.md5sum | 1 + ketchup/Pkgfile | 6 ++++-- ketchup/ketchup-list.patch | 13 +++++++++++++ 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 ketchup/ketchup-list.patch diff --git a/ketchup/.md5sum b/ketchup/.md5sum index f5d3e1180..6c1f1db6c 100644 --- a/ketchup/.md5sum +++ b/ketchup/.md5sum @@ -1 +1,2 @@ 1653d39ea2ba534543dd87b133502e24 ketchup-0.9.6.tar.bz2 +d086689be24172c9d9110cdf9f75dcc3 ketchup-list.patch diff --git a/ketchup/Pkgfile b/ketchup/Pkgfile index a4e657f13..5ce382110 100644 --- a/ketchup/Pkgfile +++ b/ketchup/Pkgfile @@ -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 } diff --git a/ketchup/ketchup-list.patch b/ketchup/ketchup-list.patch new file mode 100644 index 000000000..3be20020a --- /dev/null +++ b/ketchup/ketchup-list.patch @@ -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)