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 880196 Details for
Bug 1081622
mash keeps silly amount of drpms for rawhide
[?]
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]
Minor optimization patch
0001-Only-check-directory-once-not-once-for-every-drpm.patch (text/plain), 1.11 KB, created by
Ralph Bean
on 2014-03-29 17:14:19 UTC
(
hide
)
Description:
Minor optimization patch
Filename:
MIME Type:
Creator:
Ralph Bean
Created:
2014-03-29 17:14:19 UTC
Size:
1.11 KB
patch
obsolete
>From 04467ed6c6b61b4c4be7371b98b7355a7e95b18d Mon Sep 17 00:00:00 2001 >From: Ralph Bean <rbean@redhat.com> >Date: Sat, 29 Mar 2014 12:59:37 -0400 >Subject: [PATCH 1/2] Only check directory once, not once for every drpm. > >--- > mash/metadata.py | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > >diff --git a/mash/metadata.py b/mash/metadata.py >index d77d771..b8b8eb7 100644 >--- a/mash/metadata.py >+++ b/mash/metadata.py >@@ -145,6 +145,9 @@ class MetadataNew: > self.conf.content_tags = content_tags > > def _copy_in_deltas(self, path): >+ if not os.path.exists('%s/drpms' % (path,)): >+ os.mkdir('%s/drpms' % (path,)) >+ > ts = rpmUtils.transaction.initReadOnlyTransaction() > ts.pushVSFlags((rpm._RPMVSF_NOSIGNATURES|rpm._RPMVSF_NODIGESTS)) > >@@ -166,8 +169,6 @@ class MetadataNew: > return False > > def _copy(file, path): >- if not os.path.exists('%s/drpms' % (path,)): >- os.mkdir('%s/drpms' % (path,)) > destpath = '%s/drpms/%s' % (path, os.path.basename(file)) > try: > os.link(file, destpath) >-- >1.9.0 >
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 1081622
: 880196 |
880197