/[gli]/branches/overhaul/src/GLIPortage.py
Gentoo

Diff of /branches/overhaul/src/GLIPortage.py

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

Revision 1762 Revision 1767
256 package = self.get_best_version_vdb_chroot(package) 256 package = self.get_best_version_vdb_chroot(package)
257 if not package: return False 257 if not package: return False
258 expr = re.compile('^=?(.+?/.+?)(-\d.+)?$') 258 expr = re.compile('^=?(.+?/.+?)(-\d.+)?$')
259 res = expr.match(package) 259 res = expr.match(package)
260 if res: 260 if res:
261 GLIUtility.spawn("echo " + res.group(1) + " >> " + self._chroot_dir + "/var/lib/portage/world") 261 world_f = open(self._chroot_dir + "/var/lib/portage/world", "a")
262 world_f.write(res.group(1) + "\n")
263 world_f.close()
262 264
263 def get_best_version_vdb(self, package): 265 def get_best_version_vdb(self, package):
264 if package.startswith('='): 266 if package.startswith('='):
265 package = package[1:] 267 package = package[1:]
266 if GLIUtility.is_file("/var/db/pkg/" + package): 268 if GLIUtility.is_file("/var/db/pkg/" + package):

Legend:
Removed from v.1762  
changed lines
  Added in v.1767

  ViewVC Help
Powered by ViewVC 1.1.20