[Lunar-commits] r23363 - lunar/trunk/bin
Auke Kok
sofar at lunar-linux.org
Tue Feb 20 06:06:02 CET 2007
Author: sofar
Date: 2007-02-20 06:06:02 +0100 (Tue, 20 Feb 2007)
New Revision: 23363
Modified:
lunar/trunk/bin/lvu
Log:
Account for multiarch - iow show the x86_64 BUILD instead of the regular
one on x86_64.
Modified: lunar/trunk/bin/lvu
===================================================================
--- lunar/trunk/bin/lvu 2007-02-20 02:49:47 UTC (rev 23362)
+++ lunar/trunk/bin/lvu 2007-02-20 05:06:02 UTC (rev 23363)
@@ -338,11 +338,11 @@
show_module_component() {
- COMPONENT=$1
- MODULE=$2
- SECTION=$(find_section $MODULE)
- if [ -e $MOONBASE/$SECTION/$MODULE/$COMPONENT ] ; then
- cat $MOONBASE/$SECTION/$MODULE/$COMPONENT
+ SCRIPT_DIRECTORY=$MOONBASE/$(find_section $2)/$2
+ if [[ -e "$SCRIPT_DIRECTORY/$1.$PLATFORM" ]]; then
+ cat "$SCRIPT_DIRECTORY/$1.$PLATFORM"
+ elif [[ -e "$SCRIPT_DIRECTORY/$1" ]] ; then
+ cat "$SCRIPT_DIRECTORY/$1"
fi
}
More information about the Lunar-commits
mailing list