Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-tools.git;a=commitdiff;h=ad50d6b2cb28dfd0c696aa673905d2c6c8a942dc
commit ad50d6b2cb28dfd0c696aa673905d2c6c8a942dc Author: Miklos Vajna <[EMAIL PROTECTED]> Date: Sat Jun 14 19:51:47 2008 +0200 syncpkgcd: download sources from genesis if possible next makepkg will have an option to block downloads from genesis for unversioned tarballs, so now we can just ask makepkg to handle the source download. we do not check the return code, if it fails then we will still get a proper error message when downloading in chroot. diff --git a/syncpkgd/syncpkgcd.py b/syncpkgd/syncpkgcd.py index a83d04f..f2e8943 100644 --- a/syncpkgd/syncpkgcd.py +++ b/syncpkgd/syncpkgcd.py @@ -1,7 +1,7 @@ #!/usr/bin/env python import xmlrpclib, time, os, getopt, sys, socket, glob, base64, pwd, signal -import traceback +import traceback, shutil sys.path.append("/etc/syncpkgcd") from cconfig import config @@ -153,6 +153,12 @@ class Syncpkgcd: else: makepkg_tree = tree self.system("sudo makepkg -t %s -C" % makepkg_tree) + # download sources from our mirror if possible + self.system("sudo makepkg -t %s -doeuH") + # clean up duplicated dirs + for i in ["src", "pkg"]: + if os.path.exists(i): + shutil.rmtree(i) if self.system("sudo makepkg -t %s -cu" % makepkg_tree): self.log(pkg, "makepkg failed") try: _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git