diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-03-10 00:08:13 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-03-10 00:08:13 +0000 |
commit | 4722f5ae2ecbd194ecc34c6365f64b2d6614295a (patch) | |
tree | a6ab7c1a68b74507a8532c423bb95f2353ebfc0a /pym | |
parent | 3f97da4a44583dc747043f0b973adca167051ba4 (diff) | |
download | portage-4722f5ae2ecbd194ecc34c6365f64b2d6614295a.tar.gz portage-4722f5ae2ecbd194ecc34c6365f64b2d6614295a.tar.bz2 portage-4722f5ae2ecbd194ecc34c6365f64b2d6614295a.zip |
For bug #170178, remove all hardcoded references to '/usr/lib/portage'.
svn path=/main/trunk/; revision=6203
Diffstat (limited to 'pym')
-rw-r--r-- | pym/portage/dbapi/vartree.py | 7 | ||||
-rw-r--r-- | pym/portage/locks.py | 3 |
2 files changed, 6 insertions, 4 deletions
diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index 59ea9eb4e..a4c7737d5 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -1,5 +1,6 @@ from portage.checksum import perform_md5 -from portage.const import CACHE_PATH, CONFIG_MEMORY_FILE, PRIVATE_PATH, VDB_PATH +from portage.const import CACHE_PATH, CONFIG_MEMORY_FILE, PORTAGE_BIN_PATH, \ + PRIVATE_PATH, VDB_PATH from portage.data import portage_gid, portage_uid, secpass from portage.dbapi import dbapi from portage.dep import dep_getslot, use_reduce, paren_reduce, isvalidatom, \ @@ -98,7 +99,7 @@ class vardbapi(dbapi): except Exception, e: writemsg("!!! COUNTER file is missing for "+str(mycpv)+" in /var/db.\n", noiselevel=-1) - writemsg("!!! Please run /usr/lib/portage/bin/fix-db.py or\n", + writemsg("!!! Please run %s/fix-db.py or\n" % PORTAGE_BIN_PATH, noiselevel=-1) writemsg("!!! unmerge this exact version.\n", noiselevel=-1) writemsg("!!! %s\n" % e, noiselevel=-1) @@ -106,7 +107,7 @@ class vardbapi(dbapi): else: writemsg("!!! COUNTER file is missing for "+str(mycpv)+" in /var/db.\n", noiselevel=-1) - writemsg("!!! Please run /usr/lib/portage/bin/fix-db.py or\n", + writemsg("!!! Please run %s/fix-db.py or\n" % PORTAGE_BIN_PATH, noiselevel=-1) writemsg("!!! remerge the package.\n", noiselevel=-1) sys.exit(1) diff --git a/pym/portage/locks.py b/pym/portage/locks.py index 167109432..2575a978b 100644 --- a/pym/portage/locks.py +++ b/pym/portage/locks.py @@ -231,10 +231,11 @@ def hardlink_lockfile(lockfilename, max_wait=14400): writemsg(".") else: reported_waiting = True + from portage.const import PORTAGE_BIN_PATH print print "Waiting on (hardlink) lockfile: (one '.' per 3 seconds)" print "This is a feature to prevent distfiles corruption." - print "/usr/lib/portage/bin/clean_locks can fix stuck locks." + print "%s/clean_locks can fix stuck locks." % PORTAGE_BIN_PATH print "Lockfile: " + lockfilename time.sleep(3) |