diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-04-22 01:10:28 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-04-22 01:10:28 +0000 |
commit | 26902e158c627bc47bc1da33cc3fd2b1c9de82cc (patch) | |
tree | dfca0da414d914029e74f797b8c32f2d39ffc012 | |
parent | d49e8d159fa380836421ca37da940513ddae3192 (diff) | |
download | portage-26902e158c627bc47bc1da33cc3fd2b1c9de82cc.tar.gz portage-26902e158c627bc47bc1da33cc3fd2b1c9de82cc.tar.bz2 portage-26902e158c627bc47bc1da33cc3fd2b1c9de82cc.zip |
Print the actual DISTDIR location in the help ouput of clean_locks for bug #116676.
svn path=/main/trunk/; revision=3188
-rwxr-xr-x | bin/clean_locks | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/clean_locks b/bin/clean_locks index f5d6f8643..947f72756 100755 --- a/bin/clean_locks +++ b/bin/clean_locks @@ -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) |