Print the actual DISTDIR location in the help ouput of clean_locks for bug #116676.
authorZac Medico <zmedico@gentoo.org>
Sat, 22 Apr 2006 01:10:28 +0000 (01:10 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 22 Apr 2006 01:10:28 +0000 (01:10 -0000)
svn path=/main/trunk/; revision=3188

bin/clean_locks

index f5d6f86433b5fee088dd7e3f5789637cf49c7d3c..947f72756908c3deac4ce9da36aae6e94fe6068b 100755 (executable)
@@ -9,14 +9,15 @@ sys.path = ["/usr/lib/portage/pym"]+sys.path
 import portage_locks
 
 if not sys.argv[1:] or "--help" in sys.argv or "-h" in sys.argv:
+       import portage
        print
        print "You must specify directories with hardlink-locks to clean."
        print "You may optionally specify --force, which will remove all"
        print "of the locks, even if we can't establish if they are in use."
        print "Please attempt cleaning without force first."
        print
-       print sys.argv[0]+" /usr/portage/distfiles/.locks"
-       print sys.argv[0]+" --force /usr/portage/distfiles/.locks"
+       print "%s %s/.locks" % (sys.argv[0], portage.settings["DISTDIR"])
+       print "%s --force %s/.locks" % (sys.argv[0], portage.settings["DISTDIR"])
        print
        sys.exit(1)