983 |
# dup'd when we go out of scope |
# dup'd when we go out of scope |
984 |
|
|
985 |
if upgrade: |
if upgrade: |
986 |
modeText = _("Upgrading %s\n") |
modeText = _("Upgrading %s.\n") |
987 |
else: |
else: |
988 |
modeText = _("Installing %s\n") |
modeText = _("Installing %s.\n") |
989 |
|
|
990 |
log ("getting rpm error class") |
log ("getting rpm error class") |
991 |
errors = rpmErrorClass(instLog) |
errors = rpmErrorClass(instLog) |
1136 |
arch = iutil.getArch () |
arch = iutil.getArch () |
1137 |
|
|
1138 |
if upgrade: |
if upgrade: |
1139 |
w = intf.progressWindow(_("Post Upgrade"), |
w = intf.progressWindow(_("Post Upgrade"), |
1140 |
_("Performing post upgrade configuration..."), 6) |
_("Performing post upgrade configuration..."), 6) |
1141 |
logname = '/root/upgrade.log' |
logname = '/root/upgrade.log' |
1142 |
else: |
else: |
1143 |
w = intf.progressWindow(_("Post Install"), |
w = intf.progressWindow(_("Post Install"), |
1144 |
_("Performing post install configuration..."), 6) |
_("Performing post install configuration..."), 6) |
1145 |
logname = '/root/install.log' |
logname = '/root/install.log' |
1146 |
|
|
1147 |
instLogName = instPath + logname |
instLogName = instPath + logname |
1286 |
h = ts.hdrFromFdno(fd) |
h = ts.hdrFromFdno(fd) |
1287 |
os.close(fd) |
os.close(fd) |
1288 |
if upgrade: |
if upgrade: |
1289 |
text = _("Upgrading %s\n") |
text = _("Upgrading %s.\n") |
1290 |
else: |
else: |
1291 |
text = _("Installing %s\n") |
text = _("Installing %s.\n") |
1292 |
instLog.write (text % (hdrlist.nevra(h))) |
instLog.write(text % (hdrlist.nevra(h))) |
1293 |
os.unlink(id.compspkg) |
os.unlink(id.compspkg) |
1294 |
del ts |
del ts |
1295 |
|
|
1321 |
lines = [] |
lines = [] |
1322 |
for p in id.grpset.hdrlist.values(): |
for p in id.grpset.hdrlist.values(): |
1323 |
if not p.isSelected(): |
if not p.isSelected(): |
1324 |
text = "%s" % hdrlist.nevra(p) |
text = "%s" % (hdrlist.nevra(p)) |
1325 |
for f in ts.dbMatch('name', p.hdr[rpm.RPMTAG_NAME]): |
for f in ts.dbMatch('name', p.hdr[rpm.RPMTAG_NAME]): |
1326 |
if hdrlist.nevra(p) == hdrlist.nevra(f): |
if hdrlist.nevra(p) == hdrlist.nevra(f): |
1327 |
text = "%s (already installed)" % text |
text = "%s (already installed)" % (text) |
1328 |
else: |
else: |
1329 |
text = "%s (%s installed)" % (text, hdrlist.nevra(f)) |
text = "%s (%s installed)" % (text, hdrlist.nevra(f)) |
1330 |
lines.append("%s\n" % text) |
lines.append("%s\n" % text) |