Bug 563866
Summary: | RFE: make max_delta_rpm_size configurable | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Ralf Corsepius <rc040203> |
Component: | createrepo | Assignee: | Luke Macken <lmacken> |
Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 12 | CC: | james.antill, lmacken, pfrields |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2010-02-11 16:21:17 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Ralf Corsepius
2010-02-11 13:09:23 UTC
diff --git a/genpkgmetadata.py b/genpkgmetadata.py index 729179f..280d375 100755 --- a/genpkgmetadata.py +++ b/genpkgmetadata.py @@ -112,7 +112,9 @@ def parse_args(args, conf): help="the number of older versions to make deltas against") parser.add_option("--read-pkgs-list", default=None, dest='read_pkgs_list', help="output the paths to the pkgs actually read useful with --update") - + parser.add_option("--max-delta-rpm-size", default=100000000, + dest='max_delta_rpm_size', type='int', + help="max size of an rpm that to run deltarpm against") (opts, argsleft) = parser.parse_args(args) if len(argsleft) > 1 and not opts.split: errorprint(_('Error: Only one directory allowed per run.')) see if that patch does what you want. If so I'll push it upstream and into a release. Thanks, your patch seems to work. BTW: I am facing python tracebacks when trying to create drpms on FC11. # createrepo --deltas tmp/i386 ... Saving Primary metadata Saving file lists metadata Saving other metadata Saving delta metadata Traceback (most recent call last): File "/usr/share/createrepo/genpkgmetadata.py", line 233, in <module> main(sys.argv[1:]) File "/usr/share/createrepo/genpkgmetadata.py", line 207, in main mdgen.doPkgMetadata() File "/usr/lib/python2.6/site-packages/createrepo/__init__.py", line 368, in doPkgMetadata self.closeMetadataDocs() File "/usr/lib/python2.6/site-packages/createrepo/__init__.py", line 602, in closeMetadataDocs self.deltafile.write(self.generate_delta_xml()) File "/usr/lib/python2.6/site-packages/createrepo/__init__.py", line 691, in generate_delta_xml drpm_rel_fn) File "/usr/lib/python2.6/site-packages/createrepo/deltarpms.py", line 48, in __init__ self._getOldInfo(fo) File "/usr/lib/python2.6/site-packages/createrepo/deltarpms.py", line 71, in _getOldInfo if compobj.read(4)[:3] != "DLT": File "/usr/lib64/python2.6/gzip.py", line 219, in read self._read(readsize) File "/usr/lib64/python2.6/gzip.py", line 255, in _read self._read_gzip_header() File "/usr/lib64/python2.6/gzip.py", line 156, in _read_gzip_header raise IOError, 'Not a gzipped file' IOError: Not a gzipped file Known issue? if you're on f11 then you might want to check you have the latest rpm and deltarpm installed. I thought some of them went to xz/lzma which might be the problem above. no matter what it is a very different bug. OK you want it the bureaucratic way - Separate bug filed. Also: Reopening - FIXED UPSTREAM means "BUG is NOT FIXED" in Fedora. Close bugs when it is fixed in Fedora - This is not an upstream tracker, this is Fedora's bugtracker and a complaint against a component in Fedora! It's not about bureaucracy it's about keeping things in the right pile and organized. please don't reopen the bugs I close as upstream. That helps me keep track of them. I wasn't closing this bug to be confrontational - it's just how I organize my bugs. thanks for opening the new bug. (In reply to comment #5) > please don't reopen the bugs I close as upstream. What kind of clue stick does it take to make @RHs comprehend that "FIXED UPSTREAM" is a rude and bold lie to cheat the community? Fact is: This issue is still reunsolved in Fedora 12, you are cheating to yourselves and to everybody else about this issue. > I wasn't closing this bug to be confrontational Rest assured, the fact you closed this bug was confrontational and the fact you closed it again, made this even worse. |