Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 590856 Details for
Bug 824848
RFE: exclude .svn from tarballs when using svn as SCM and SCM option write_tar=True
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
SCM: Use --exclude-vcs with tar where available
0001-SCM-Use-exclude-vcs-with-tar-where-available.patch (text/plain), 1.33 KB, created by
Marko Myllynen
on 2012-06-11 08:34:53 UTC
(
hide
)
Description:
SCM: Use --exclude-vcs with tar where available
Filename:
MIME Type:
Creator:
Marko Myllynen
Created:
2012-06-11 08:34:53 UTC
Size:
1.33 KB
patch
obsolete
>From fdd5ff4af11b3470a4b14372d583c1fa0d9c4005 Mon Sep 17 00:00:00 2001 >From: Marko Myllynen <myllynen@redhat.com> >Date: Mon, 11 Jun 2012 11:32:23 +0300 >Subject: [PATCH] SCM: Use --exclude-vcs with tar where available > >--- > py/mockbuild/scm.py | 7 ++++++- > 1 files changed, 6 insertions(+), 1 deletions(-) > >diff --git a/py/mockbuild/scm.py b/py/mockbuild/scm.py >index 22d89d2..200eaf3 100644 >--- a/py/mockbuild/scm.py >+++ b/py/mockbuild/scm.py >@@ -146,12 +146,17 @@ class scmWorker(object): > if self.write_tar: > tardir = self.name + "-" + self.version > 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() > os.chdir(self.wrk_dir) > os.rename(self.name, tardir) >- cmd = "tar czf " + tarball + " " + tardir >+ cmd = "tar czf " + tarball + " " + taropts + " " + tardir > mockbuild.util.do(shlex.split(cmd), shell=False, cwd=self.wrk_dir, env=self.environ) > os.rename(tarball, tardir + "/" + tarball) > os.rename(tardir, self.name) >-- >1.7.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 824848
: 590856