[firmware-free] 04/19: Remove existing file/symlink when creating bug-presubj symlink

debian-kernel at lists.debian.org debian-kernel at lists.debian.org
Sun May 22 22:54:39 UTC 2016


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

benh pushed a commit to branch master
in repository firmware-free.

commit 6c4ac8c1fd1d12c2372d5c33d7e7a469533f5b74
Author: Ben Hutchings <benh at debian.org>
Date:   Sat Sep 18 00:38:24 2010 +0000

    Remove existing file/symlink when creating bug-presubj symlink
    
    [bwh: Cherry-picked from firmware-nonfree commit
     ab67da7b281eb76cac1f95be3e8a2bca981e723d]
---
 debian/bin/gencontrol.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/debian/bin/gencontrol.py b/debian/bin/gencontrol.py
index 3d225cb..44af010 100755
--- a/debian/bin/gencontrol.py
+++ b/debian/bin/gencontrol.py
@@ -179,6 +179,10 @@ class GenControl(debian_linux.gencontrol.Gencontrol):
             vars['license'] = codecs.open("%s/LICENSE" % package, 'r', 'utf-8').read()
             codecs.open("debian/firmware-%s.copyright" % package, 'w', 'utf-8').write(self.substitute(copyright, vars))
 
+        try:
+            os.unlink('debian/firmware-%s.bug-presubj' % package)
+        except OSError:
+            pass
         os.symlink('bug-presubj', 'debian/firmware-%s.bug-presubj' % package)
 
         files_orig = config_entry['files']

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/firmware-free.git



More information about the Kernel-svn-changes mailing list