/[smeserver]/cdrom.image/updates/packages.py
ViewVC logotype

Diff of /cdrom.image/updates/packages.py

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.9 by slords, Wed Apr 5 01:20:27 2006 UTC Revision 1.10 by slords, Wed Apr 5 21:11:51 2006 UTC
# Line 983  def doInstall(method, id, intf, instPath Line 983  def doInstall(method, id, intf, instPath
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)
# Line 1136  def doPostInstall(method, id, intf, inst Line 1136  def doPostInstall(method, id, intf, inst
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
# Line 1286  def doPostInstall(method, id, intf, inst Line 1286  def doPostInstall(method, id, intf, inst
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    
# Line 1321  def doPostInstall(method, id, intf, inst Line 1321  def doPostInstall(method, id, intf, inst
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)


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed