[Frugalware-darcs] pacman-tools: genchangelog: download missing sources automatically

VMiklos vmiklos at frugalware.org
Thu Mar 16 17:50:35 CET 2006


[genchangelog: download missing sources automatically
VMiklos <vmiklos at frugalware.org>**20060206000508] {
hunk ./genchangelog 9
+strip_url()
+{
+	echo $1 | sed 's|^.*://.*/||g'
+}
+
hunk ./genchangelog 23
-echo -n "updating mysql database... "
hunk ./genchangelog 35
+. /etc/makepkg.conf
+
+echo "downloading missing source files..."
+
+for i in ${source[@]}
+do
+	file=`strip_url $i`
+	if [ ! -e $file ]; then
+		echo "downloading $file..."
+		$FTPAGENT $i
+	fi
+done
+
+echo -n "updating mysql database... "
}


More information about the Frugalware-darcs mailing list