Georgi Chorbadzhiyski 15 years ago
parent
commit
e36e56e91c
1 changed files with 4 additions and 5 deletions
  1. 4
    5
      update_script.sh

+ 4
- 5
update_script.sh View File

@@ -144,12 +144,8 @@ mkdir ${REMOTE_DIR} 2>/dev/null
144 144
 	if [ "$PKG_XZ" != "" -a ! -x "/bin/xz" ]; then
145 145
 		pkg_install "xz is not installed. Installing it." $PKG_XZ
146 146
 	fi
147
-	if [ "$PKG_LIBCAP" != "" -a ! -f "lib/libcap.a" ]; then
148
-		pkg_install "libcap is not installed. Installing it." $PKG_LIBCAP
149
-	fi
150 147
 	for PKG in $UPDATE; do
151
-		pkgfile=`basename $PKG | sed -e 's|\.t[a-z]z$||'`
152
-		upgradepkg ${pkgfile}.t?z
148
+		upgradepkg `basename $PKG`
153 149
 		# UGLY HACK! sed was split from 'bin' package and
154 150
 		# upgrading 'bin' package will cause sed to dissapear
155 151
 		# however sed is used by pkgtools so this hack is needed
@@ -157,6 +153,9 @@ mkdir ${REMOTE_DIR} 2>/dev/null
157 153
 		if [ ! -x "/usr/bin/sed" ]; then
158 154
 			pkg_install "Sed is not installed. Installing it." $PKG_SED
159 155
 		fi
156
+		if [ "$PKG_LIBCAP" != "" -a ! -f "lib/libcap.a" ]; then
157
+			pkg_install "libcap is not installed. Installing it." $PKG_LIBCAP
158
+		fi
160 159
 	done
161 160
 
162 161
 	# Workaround for aaa_elflibs, for more info see

Loading…
Cancel
Save