[Frugalware-darcs] setup-current: 1cd->2cd

VMiklos mamajom at axelero.hu
Thu Mar 16 18:04:30 CET 2006


[1cd->2cd
VMiklos <mamajom at axelero.hu>**20050402124122] {
hunk ./rc.S 8
+depmod -a
hunk ./setup 440
-	repro=$1
-	shift
-	if [ "$repro" = "frugalware" ]; then
-		pkglstf="$bindir/../Packages.lst"
-		pacbindir=$bindir
-	elif [ "$repro" = "extra" ]; then
-		pkglstf="$exbindir/../Packages.lst"
-		pacbindir=$exbindir
-	fi
-	categorytempfile=`mktemp /tmp/tmp.XXXXXX`
-	chmod +x $categorytempfile
-	echo -n "( du -ch ">$categorytempfile
-	for i in `cat $pkglstf |grep ^$1|sed 's|.*/\(.*\)|\1|'`
-	do
-		echo -n "$pacbindir/$i ">>$categorytempfile
-	done
-	echo ") |tail -n 1 |sed 's/\([0-9\.]*[A-Za-z]\).*/\1/'" >>$categorytempfile
-	echo `$categorytempfile`
-	rm $categorytempfile
+#	repro=$1
+#	shift
+#	if [ "$repro" = "frugalware" ]; then
+#		pkglstf="$bindir/../Packages.lst"
+#		pacbindir=$bindir
+#	elif [ "$repro" = "extra" ]; then
+#		pkglstf="$exbindir/../Packages.lst"
+#		pacbindir=$exbindir
+#	fi
+#	categorytempfile=`mktemp /tmp/tmp.XXXXXX`
+#	chmod +x $categorytempfile
+#	echo -n "( du -ch ">$categorytempfile
+#	for i in `cat $pkglstf |grep ^$1|sed 's|.*/\(.*\)|\1|'`
+#	do
+#		echo -n "$pacbindir/$i ">>$categorytempfile
+#	done
+#	echo ") |tail -n 1 |sed 's/\([0-9\.]*[A-Za-z]\).*/\1/'" >>$categorytempfile
+#	echo `$categorytempfile`
+#	rm $categorytempfile
+	echo "   "
hunk ./setup 464
-	du -h $1 |sed 's/\([0-9\.]*[A-Za-z]\).*/\1/'
+	# du -h $1 |sed 's/\([0-9\.]*[A-Za-z]\).*/\1/'
+	sizename=`echo $2|sed 's|.*/\(.*\).fpm|\1|'`
+	echo $((`tar xzOf $1 $sizename/desc|sed -n '11 p'`/1048576))MB
+
hunk ./setup 574
-		echo -n "$i \"(`pkgdesc $pacbindir/$reponame.fdb $pacbindir/$i`, `pkgsize $pacbindir/$i`)\" $state ">>$pkglstselect
+		echo -n "$i \"(`pkgdesc $pacbindir/$reponame.fdb $pacbindir/$i`, `pkgsize $pacbindir/$reponame.fdb $pacbindir/$i`)\" $state ">>$pkglstselect
hunk ./setup 638
-		reproname="current"
+		reproname="frugalware-current"
hunk ./setup 642
-		reproname="extra"
+		reproname="extra-current"
}


More information about the Frugalware-darcs mailing list