summaryrefslogtreecommitdiffstats
path: root/genheader.py
diff options
context:
space:
mode:
authorPaul Nasrat <pnasrat@redhat.com>2005-11-14 09:55:13 +0000
committerPaul Nasrat <pnasrat@redhat.com>2005-11-14 09:55:13 +0000
commit8a7c23788bf053ed6aa47254b302107680cfb3d1 (patch)
treed8e425bc3e369e97d7cbea193e8c0c4b5a870c50 /genheader.py
parentc5eed570405e7f1a5d9a416e1bde8953fece1850 (diff)
downloadanaconda-8a7c23788bf053ed6aa47254b302107680cfb3d1.tar.gz
anaconda-8a7c23788bf053ed6aa47254b302107680cfb3d1.tar.xz
anaconda-8a7c23788bf053ed6aa47254b302107680cfb3d1.zip
Don't change original po epoch
Diffstat (limited to 'genheader.py')
-rw-r--r--genheader.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/genheader.py b/genheader.py
index 2797854ac..29c5aa664 100644
--- a/genheader.py
+++ b/genheader.py
@@ -3,6 +3,7 @@
import os
from struct import *
import rpm
+import copy
# Types
RPM_NULL = 0
@@ -43,7 +44,8 @@ class YumHeader:
"""Partial and dumbed down header generation for cd installation
@param po
@type po: PackageObject"""
- self.po = po
+ # Copy for epoch munging
+ self.po = copy.deepcopy(po)
self.store = ""
self.offset = 0
self.indexes = []