OSSP CVS Repository

ossp - Check-in [3607]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 3607
Date: 2003-Sep-12 11:25:06 (local)
2003-Sep-12 09:25:06 (UTC)
User:rse
Branch:
Comment: RedHat's (optional) lsb-release file contains only LSB_VERSION, so make sure we do not set SP to a whitespace, which in turn would disable later checks
Tickets:
Inspections:
Files:
ossp-pkg/platform/platform.sh      1.7 -> 1.8     3 inserted, 1 deleted

ossp-pkg/platform/platform.sh 1.7 -> 1.8

--- platform.sh  2003/09/11 17:59:34     1.7
+++ platform.sh  2003/09/12 09:25:06     1.8
@@ -362,7 +362,9 @@
         if [ -f /etc/lsb-release ]; then
             eval `( . /etc/lsb-release
                 echo "SC=\"LSB${LSB_VERSION}\""
-                echo "SP=\"${DISTRIB_ID} ${DISTRIB_RELEASE}\""
+                if [ ".${DISTRIB_ID}" != . ]; then
+                    echo "SP=\"${DISTRIB_ID} ${DISTRIB_RELEASE}\""
+                fi
             ) 2>/dev/null`
         fi
         if [ ".$SP" = . ]; then

CVSTrac 2.0.1