[[[ emerge --info: Check metadata/timestamp.chk in all repositories. 1 use of deprecated PORTDIR has been deleted. ]]]
-- Arfrever Frehtes Taifersar Arahesis
--- pym/_emerge/actions.py +++ pym/_emerge/actions.py @@ -1452,6 +1452,7 @@ vardb = trees[eroot]["vartree"].dbapi portdb = trees[eroot]['porttree'].dbapi bindb = trees[eroot]["bintree"].dbapi + repos = portdb.settings.repositories for x in myfiles: any_match = False cp_exists = bool(vardb.match(x.cp)) @@ -1554,13 +1555,12 @@ line += ",%10d free" % (vm_info["swap.free"] // 1024,) append(line) - lastSync = portage.grabfile(os.path.join( - settings["PORTDIR"], "metadata", "timestamp.chk")) - if lastSync: - lastSync = lastSync[0] - else: - lastSync = "Unknown" - append("Timestamp of tree: %s" % (lastSync,)) + for repo in repos: + timestamp_file = os.path.join(repo.location, "metadata", "timestamp.chk") + if os.path.isfile(timestamp_file): + last_sync = portage.grabfile(timestamp_file) + if last_sync: + append("Timestamp of repository %s: %s" % (repo.name, last_sync[0])) # Searching contents for the /bin/sh provider is somewhat # slow. Therefore, use the basename of the symlink target @@ -1707,7 +1707,6 @@ append("%s %s" % \ ((cp + ":").ljust(cp_max_len + 1), versions)) - repos = portdb.settings.repositories append("Repositories:\n") for repo in repos: append(repo.info_string())
signature.asc
Description: This is a digitally signed message part.