* python2.3 compat
This commit is contained in:
@@ -807,7 +807,6 @@ Finds the installed package which contains the specified file.
|
|||||||
self.parser.add_option("-l", "--long", action="store_true",
|
self.parser.add_option("-l", "--long", action="store_true",
|
||||||
default=False, help="show in long format")
|
default=False, help="show in long format")
|
||||||
|
|
||||||
@staticmethod
|
|
||||||
def search_exact(path):
|
def search_exact(path):
|
||||||
path = path.lstrip('/') #FIXME: this shouldn't be necessary :/
|
path = path.lstrip('/') #FIXME: this shouldn't be necessary :/
|
||||||
if ctx.filesdb.has_file(path):
|
if ctx.filesdb.has_file(path):
|
||||||
@@ -818,6 +817,7 @@ Finds the installed package which contains the specified file.
|
|||||||
file_info.hash) )
|
file_info.hash) )
|
||||||
else:
|
else:
|
||||||
ctx.ui.error(_('Path %s does not belong to an installed package') % path)
|
ctx.ui.error(_('Path %s does not belong to an installed package') % path)
|
||||||
|
search_exact=staticmethod(search_exact)
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user