projects
/
tools
/
createrepo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5af6824
)
use gzip.name not gzip.filename to avoid python 2.6 deprecation warnings
author
Seth Vidal
<skvidal@fedoraproject.org>
Thu, 22 Jan 2009 21:29:06 +0000
(16:29 -0500)
committer
Seth Vidal
<skvidal@fedoraproject.org>
Thu, 22 Jan 2009 21:29:06 +0000
(16:29 -0500)
createrepo/utils.py
patch
|
blob
|
history
diff --git
a/createrepo/utils.py
b/createrepo/utils.py
index 1b0d015927af70365b7f786f37f9301ee10bc6d3..d2fd6587035faf3f42f4b362b1b8017e7d6f4d32 100644
(file)
--- a/
createrepo/utils.py
+++ b/
createrepo/utils.py
@@
-36,7
+36,7
@@
class GzipFile(gzip.GzipFile):
def _write_gzip_header(self):
self.fileobj.write('\037\213') # magic header
self.fileobj.write('\010') # compression method
- fname = self.
file
name[:-3]
+ fname = self.name[:-3]
flags = 0
if fname:
flags = FNAME