[Frugalware-darcs] setup-current: don't eject cd two time if only cd1 and cd3 are used

VMiklos mamajom at axelero.hu
Thu Mar 16 17:57:35 CET 2006


[don't eject cd two time if only cd1 and cd3 are used
VMiklos <mamajom at axelero.hu>**20050505144043] {
hunk ./setup 644
-		cd_change || skip=1
-		if [ "$skip" != 1 ]; then
-			clear
-			for i in x11 xlib xapps xfce4 gnome kde
-			do
-				if [ -e /tmp/pkgcat/$i ]; then
-					selpkg=`cat /tmp/pkgcat/$i`
-					install_packages $repo `echo $i|sed 's|.*/\(.*\)$|\1|'` $selpkg
-				fi
-			done
+		if [ -e /tmp/pkgcat/x11 -o -e /tmp/pkgcat/xlib -o -e /tmp/pkgcat/xapps -o -e /tmp/pkgcat/xfce4 -o -e /tmp/pkgcat/gnome -o -e /tmp/pkgcat/kde ]; then
+			cd_change || skip=1
+			if [ "$skip" != 1 ]; then
+				clear
+				for i in x11 xlib xapps xfce4 gnome kde
+				do
+					if [ -e /tmp/pkgcat/$i ]; then
+						selpkg=`cat /tmp/pkgcat/$i`
+						install_packages $repo `echo $i|sed 's|.*/\(.*\)$|\1|'` $selpkg
+					fi
+				done
+			fi
}


More information about the Frugalware-darcs mailing list