Browse Source

Add workaround

Georgi Chorbadzhiyski 15 years ago
parent
commit
340c6fef5b
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      update_script.sh

+ 6
- 1
update_script.sh View File

@@ -140,8 +140,13 @@ mkdir ${REMOTE_DIR} 2>/dev/null
140 140
 
141 141
 	echo "===> Upgrating packages..."
142 142
 	for PKG in $UPDATE; do
143
+		# UGLY HACK #2, to upgrade from 12.1 to -current you need
144
+		# libxz because of lzma compression of newer packages
145
+		if [ "$PKG_XZ" != "" -a ! -x "/bin/xz" ]; then
146
+			pkg_install "xz is not installed. Installing it." $PKG_XZ
147
+		fi
143 148
 		pkgfile=`basename $PKG | sed -e 's|\.t[a-z]z$||'`
144
-		upgradepkg ${pkgfile}
149
+		upgradepkg ${pkgfile}.t?z
145 150
 		# UGLY HACK! sed was split from 'bin' package and
146 151
 		# upgrading 'bin' package will cause sed to dissapear
147 152
 		# however sed is used by pkgtools so this hack is needed

Loading…
Cancel
Save