openmamba-lsb/openmamba-lsb-3.2-lsb_release_GetLSBInfo.patch

29 lines
801 B
Diff
Raw Normal View History

--- lsb-release-2.0/lsb_release.orig 2009-12-16 22:40:33.000000000 +0100
+++ lsb-release-2.0/lsb_release 2009-12-16 22:41:04.000000000 +0100
@@ -188,24 +188,13 @@
# Get/Init LSB infos (maybe Distrib infos too)
GetLSBInfo() {
- if [ -f "$INFO_ROOT/$INFO_LSB_FILE" ]
- then
- # should init at least LSB_VERSION
- . "$INFO_ROOT/$INFO_LSB_FILE"
- fi
- if [ -z "$LSB_VERSION" ]
- then
- LSB_VERSION=$MSG_NA
- else
- # if we found LSB_VERSION, continue to look in directory
if [ -d "$INFO_ROOT/$INFO_LSB_DIR" ]
then
for tag in "$INFO_ROOT/$INFO_LSB_DIR/"*
do
- LSB_VERSION=$LSB_VERSION:`basename $tag`
+ LSB_VERSION=${LSB_VERSION:+$LSB_VERSION:}`basename $tag`
done
fi
- fi
}
# Get the whole distrib information string (from ARG $1 file)