From 336b18dddca3613811adca2283a8a9f4e80129ba Mon Sep 17 00:00:00 2001 From: "chess.griffin" Date: Tue, 9 Sep 2008 15:20:43 +0000 Subject: [PATCH] hopefully fix ubuntulooks correctly this time (plus try to check in this commit a second time, not sure why the first didn't take) --- src/usr/bin/sbopkg | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/usr/bin/sbopkg b/src/usr/bin/sbopkg index e202d5a..5d92ce4 100755 --- a/src/usr/bin/sbopkg +++ b/src/usr/bin/sbopkg @@ -297,10 +297,22 @@ potential updates..." >> $UPDATELIST VERSION=$(echo $VERSION | sed -e 's/[ #}\t].*$//;s/^.*://;s/-/./g') NEWSRCVER="" fi + # It took me a lot longer than I would like to admit to + # figure out why 0.9.12_8 is greater than 0.9.12_12. This + # ugly hack for ubuntulooks is one attempt to fix decimal + # type problem, otherwise sbopkg thinks the installed + # version is newer than the repo. + if [ "$PRGNAM" = "ubuntulooks" ]; then + MINIVER=$(echo $VER | sed -e 's/^.*_//') | wc -m) + if [ $MINIVER -le 2 ]; then + VER=$(echo $VER | sed -e 's/_/_0/') + fi + NEWSRCVER="" + fi # Ugly hack for several SlackBuilds that use $SRCVER # but not in the final package name, so we need to # blank out $NEWSRCVER - if [[ "$PRGNAM" == "ctorrent" || "$PRGNAM" == "argtable" || "$PRGNAM" == "libevent" || "$PRGNAM" == "ubuntulooks" || "$PRGNAM" == "graveman" || "$PRGNAM" == "hugin" || "$PRGNAM" == "lame" || "$PRGNAM" == "kchmviewer" ]]; then + if [[ "$PRGNAM" == "ctorrent" || "$PRGNAM" == "argtable" || "$PRGNAM" == "libevent" || "$PRGNAM" == "graveman" || "$PRGNAM" == "hugin" || "$PRGNAM" == "lame" || "$PRGNAM" == "kchmviewer" ]]; then NEWSRCVER="" fi CURPKG=$(echo $NAME-$VER-$ARCH-$BUILD)