diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2008-07-18 18:40:42 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2008-07-18 18:40:42 (GMT) |
commit | 3b6cc09509735d4f438b370b26bf9d7560481cff (patch) | |
tree | 1f10d6fb05349dd0d91d5300a702ef8fd60e1bb6 /Tools/msi/merge.py | |
parent | 5a722409ee2aed97d18f2646a30178171167c028 (diff) | |
download | cpython-3b6cc09509735d4f438b370b26bf9d7560481cff.zip cpython-3b6cc09509735d4f438b370b26bf9d7560481cff.tar.gz cpython-3b6cc09509735d4f438b370b26bf9d7560481cff.tar.bz2 |
Revert r63378. These files need to stay compatible with Python 2.x (until Python 3.0 is actually used to package Python).
Diffstat (limited to 'Tools/msi/merge.py')
-rw-r--r-- | Tools/msi/merge.py | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/Tools/msi/merge.py b/Tools/msi/merge.py index 349cf7e..ff34b93 100644 --- a/Tools/msi/merge.py +++ b/Tools/msi/merge.py @@ -19,23 +19,23 @@ def merge(msi, feature, rootdir, modules): # Step 1: Merge databases, extract cabfiles
m = msilib.MakeMerge2()
m.OpenLog("merge.log")
- print("Opened Log")
+ print "Opened Log"
m.OpenDatabase(msi)
- print("Opened DB")
+ print "Opened DB"
for module in modules:
- print(module)
+ print module
m.OpenModule(module,0)
- print("Opened Module",module)
+ print "Opened Module",module
m.Merge(feature, rootdir)
- print("Errors:")
+ print "Errors:"
for e in m.Errors:
- print(e.Type, e.ModuleTable, e.DatabaseTable)
- print(" Modkeys:", end=' ')
- for s in e.ModuleKeys: print(s, end=' ')
- print()
- print(" DBKeys:", end=' ')
- for s in e.DatabaseKeys: print(s, end=' ')
- print()
+ print e.Type, e.ModuleTable, e.DatabaseTable
+ print " Modkeys:",
+ for s in e.ModuleKeys: print s,
+ print
+ print " DBKeys:",
+ for s in e.DatabaseKeys: print s,
+ print
cabname = tempfile.mktemp(suffix=".cab")
m.ExtractCAB(cabname)
cab_and_filecount.append((cabname, len(m.ModuleFiles)))
@@ -56,7 +56,7 @@ def merge(msi, feature, rootdir, modules): seq = r.IntegerData(1)
if seq > maxmedia:
maxmedia = seq
- print("Start of Media", maxmedia)
+ print "Start of Media", maxmedia
for cabname, count in cab_and_filecount:
stream = "merged%d" % maxmedia
|