Browse code

Merge "Updates for tools/info.sh"

Jenkins authored on 2014/01/26 22:36:41
Showing 1 changed files
... ...
@@ -85,8 +85,8 @@ done
85 85
 # Packages
86 86
 # --------
87 87
 
88
-# - We are going to check packages only for the services needed.
89
-# - We are parsing the packages files and detecting metadatas.
88
+# - Only check packages for the services enabled
89
+# - Parse version info from the package metadata, not the package/file names
90 90
 
91 91
 for p in $(get_packages $ENABLED_SERVICES); do
92 92
     if [[ "$os_PACKAGE" = "deb" ]]; then
... ...
@@ -141,9 +141,15 @@ rm $FREEZE_FILE
141 141
 
142 142
 # Dump localrc with 'localrc|' prepended and comments and passwords left out
143 143
 if [[ -r $TOP_DIR/localrc ]]; then
144
+    RC=$TOP_DIR/localrc
145
+elif [[ -f $RC_DIR/.localrc.auto ]]; then
146
+    RC=$TOP_DIR/.localrc.auto
147
+fi
148
+if [[ -n $RC ]]; then
144 149
     sed -e '
145
-        /PASSWORD/d;
150
+        /^[ \t]*$/d;
151
+        /PASSWORD/s/=.*$/=\<password\>/;
146 152
         /^#/d;
147 153
         s/^/localrc\|/;
148
-    ' $TOP_DIR/localrc
154
+    ' $RC
149 155
 fi