Skip to content

Instantly share code, notes, and snippets.

@mindjiver
Created February 17, 2014 10:09
Show Gist options
  • Save mindjiver/9047972 to your computer and use it in GitHub Desktop.
Save mindjiver/9047972 to your computer and use it in GitHub Desktop.
Quick fix to include vcs-information in generated tarball
--- /tmp/scm.py 2014-02-17 11:08:18.730335514 +0100
+++ /usr/lib/python2.6/site-packages/mockbuild/scm.py 2014-02-17 11:07:56.501196444 +0100
@@ -151,9 +151,9 @@
tarball = tardir + ".tar.gz"
taropts = ""
- proc = subprocess.Popen(['tar', '--help'], shell=False, stdout=subprocess.PIPE)
- if "--exclude-vcs" in proc.communicate()[0]:
- taropts = "--exclude-vcs"
self.log.debug("Writing " + self.src_dir + "/" + tarball + "...")
dir = os.getcwd()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment