Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-tools.git;a=commitdiff;h=e76805d0660e58e778124378f8f0835323ccafd3
commit e76805d0660e58e778124378f8f0835323ccafd3 Author: Miklos Vajna <[EMAIL PROTECTED]> Date: Sat Nov 10 15:29:51 2007 +0100 syncpkgcd: don't die on non-existing packages, just report the issue diff --git a/syncpkgd/syncpkgcd.py b/syncpkgd/syncpkgcd.py index c9c9eea..cc3e3fc 100644 --- a/syncpkgd/syncpkgcd.py +++ b/syncpkgd/syncpkgcd.py @@ -111,7 +111,9 @@ class Syncpkgcd: except OSError: self.log(pkg, "failed to get the repo") return - self.go(pkgname) + if not self.go(pkgname): + server.report_result(config.server_user, config.server_pass, pkg, 1, base64.encodestring("No such package.")) + return if scm == "git": self.system("git clean -x -d") elif scm == "darcs": @@ -167,8 +169,8 @@ class Syncpkgcd: continue if dir == pkgname: os.chdir(os.path.join(root, dir)) - return - raise Exception("can't find package '%s'") + return True + raise False def save(self): self.log("", "client shutting down") self.logsock.close() _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git