[Pkg-xen-changes] [xen] 03/04: genorig: Move symlink code
Bastian Blank
waldi at moszumanska.debian.org
Sun Sep 7 08:58:53 UTC 2014
This is an automated email from the git hooks/post-receive script.
waldi pushed a commit to branch develop
in repository xen.
commit 7a8b6c4ae8299abd28a93541cd225aca29efaaac
Author: Bastian Blank <waldi at debian.org>
Date: Sun Sep 7 10:57:50 2014 +0200
genorig: Move symlink code
---
debian/bin/genorig.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/debian/bin/genorig.py b/debian/bin/genorig.py
index dd6754c..5f4e8f7 100755
--- a/debian/bin/genorig.py
+++ b/debian/bin/genorig.py
@@ -51,11 +51,6 @@ class Main(object):
else:
raise NotImplementedError
- try:
- os.symlink(os.path.join('orig', self.orig_tar), os.path.join('..', self.orig_tar))
- except OSError:
- pass
-
def __call__(self):
import tempfile
self.temp_dir = tempfile.mkdtemp(prefix='genorig', dir='debian')
@@ -80,6 +75,11 @@ class Main(object):
subprocess.check_call(('tar', '-C', self.temp_dir, '-caf', out, self.orig_dir))
+ try:
+ os.symlink(os.path.join('orig', self.orig_tar), os.path.join('..', self.orig_tar))
+ except OSError:
+ pass
+
if __name__ == '__main__':
from optparse import OptionParser
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-xen/xen.git
More information about the Pkg-xen-changes
mailing list