Lines 141-156
for PACKAGE in $UBUNTU_PACKAGES; do
Link Here
|
141 |
# Test if the package is installed |
141 |
# Test if the package is installed |
142 |
PACKAGE_INSTALLED=`packageInstalled $PACKAGE` |
142 |
PACKAGE_INSTALLED=`packageInstalled $PACKAGE` |
143 |
|
143 |
|
|
|
144 |
# Determine the package version if it is installed. |
145 |
if [ "$PACKAGE_INSTALLED" == "yes" ]; then |
146 |
PACKAGE_VERSION=`getPackageVersion $PACKAGE` |
147 |
|
148 |
# otherwise default to 'none'. |
149 |
else |
150 |
PACKAGE_VERSION="none" |
151 |
MISSING_PACKAGES="$PACKAGE $MISSING_PACKAGES" |
152 |
fi |
153 |
|
144 |
# If we are supposed to report... |
154 |
# If we are supposed to report... |
145 |
if [ "$CHECK" == "yes" ]; then |
155 |
if [ "$CHECK" == "yes" ]; then |
146 |
|
156 |
|
147 |
# Determine the package version if it is installed. |
|
|
148 |
if [ "$PACKAGE_INSTALLED" == "yes" ]; then |
149 |
PACKAGE_VERSION=`getPackageVersion $PACKAGE` |
150 |
# otherwise default to 'none'. |
151 |
else |
152 |
PACKAGE_VERSION="none" |
153 |
fi |
154 |
|
157 |
|
155 |
# report the package name and version number. |
158 |
# report the package name and version number. |
156 |
echo "$PACKAGE = $PACKAGE_VERSION" |
159 |
echo "$PACKAGE = $PACKAGE_VERSION" |
Lines 163-169
for PACKAGE in $UBUNTU_PACKAGES; do
Link Here
|
163 |
done |
166 |
done |
164 |
|
167 |
|
165 |
# If we aren't reporting, then the last echo didn't have a newline. |
168 |
# If we aren't reporting, then the last echo didn't have a newline. |
166 |
if [ "$CHECK" != "yes" ]; then |
169 |
if [ ! "$CHECK" == "yes" ]; then |
167 |
echo |
170 |
echo |
168 |
fi |
171 |
fi |
169 |
|
172 |
|
170 |
- |
|
|