[Pkg-debile-commits] [debile-master] 63/126: work around epoch stupidity

Sylvestre Ledru sylvestre at alioth.debian.org
Mon Aug 19 14:56:15 UTC 2013


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

sylvestre pushed a commit to branch scan-build-html
in repository debile-master.

commit 3ee4d5c688e9727a90be32fba90bbc21f664edff
Author: Paul Tagliamonte <tag at pault.ag>
Date:   Sun Jun 2 09:48:17 2013 -0400

    work around epoch stupidity
---
 lucy/archive.py |   10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/lucy/archive.py b/lucy/archive.py
index eb24008..a8a4959 100644
--- a/lucy/archive.py
+++ b/lucy/archive.py
@@ -26,4 +26,14 @@ def move_to_pool(config, package, changes, root=None):
         bn = os.path.basename(entry)
         dest = os.path.join(path, bn)
         os.rename(entry, dest)
+        if entry.endswith(".dsc"):
+            guessed_name = "{source}_{version}.dsc".format(
+                source=changes['source'],
+                version=changes['version'],
+            )
+            guessed_path = os.path.join(path, guessed_name)
+            if not os.path.exists(guessed_path):
+                dest = os.path.abspath(dest)
+                os.symlink(dest, guessed_path)
+
     return ret

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



More information about the Pkg-debile-commits mailing list