[Pkg-debile-commits] [debile-slave] 58/100: feh

Sylvestre Ledru sylvestre at alioth.debian.org
Mon Aug 19 14:53:09 UTC 2013


This is an automated email from the git hooks/post-receive script.

sylvestre pushed a commit to branch master
in repository debile-slave.

commit 728b91b225e1546e842b35bc3cc8e6c5cd75aa59
Author: Paul Tagliamonte <tag at pault.ag>
Date:   Sun Jun 2 13:08:16 2013 -0400

    feh
---
 ethel/commands/build.py |   18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

diff --git a/ethel/commands/build.py b/ethel/commands/build.py
index 9762f68..f764af2 100644
--- a/ethel/commands/build.py
+++ b/ethel/commands/build.py
@@ -1,5 +1,6 @@
 from ethel.runners.sbuild import sbuild
 from ethel.utils import upload
+import glob
 import os
 
 
@@ -10,15 +11,20 @@ def run(dsc, package, job, firehose):
 
     info, out, ftbfs = sbuild(dsc, suite, arch)
 
-    changes = "{source}_{version}_{arch}.changes".format(
+    changes = "{source}*{arch}.changes".format(
         source=package['source'],
-        version=package['version'],
-        arch=arch)
+        arch=arch
+    )
 
-    if os.path.exists(changes):
-        upload(changes, job['_id'])
-    elif not ftbfs:
+    changes = list(glob.glob(changes))
+
+    if changes == [] and not ftbfs:
         print(out)
         raise Exception("Um. No changes but no FTBFS.")
 
+    changes = changes[0]
+
+    if os.path.exists(changes):
+        upload(changes, job['_id'])
+
     return (info, out, ftbfs)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-debile/debile-slave.git



More information about the Pkg-debile-commits mailing list