From 8a7c23788bf053ed6aa47254b302107680cfb3d1 Mon Sep 17 00:00:00 2001 From: Paul Nasrat Date: Mon, 14 Nov 2005 09:55:13 +0000 Subject: Don't change original po epoch --- genheader.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'genheader.py') 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 = [] -- cgit