* show path from root.
This commit is contained in:
@@ -786,7 +786,7 @@ Usage: info <package1> <package2> ... <packagen>
|
|||||||
if self.options.files:
|
if self.options.files:
|
||||||
print fileinfo
|
print fileinfo
|
||||||
else:
|
else:
|
||||||
print fileinfo.path
|
print "/" + fileinfo.path
|
||||||
else:
|
else:
|
||||||
ctx.ui.warning(_('File information not available'))
|
ctx.ui.warning(_('File information not available'))
|
||||||
if not self.options.short:
|
if not self.options.short:
|
||||||
|
|||||||
+1
-1
@@ -31,7 +31,7 @@ class FileInfo:
|
|||||||
t_Permanent = [ autoxml.String, autoxml.optional ]
|
t_Permanent = [ autoxml.String, autoxml.optional ]
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
s = "%s, type: %s, size: %s, sha1sum: %s" % (self.path, self.type,
|
s = "/%s, type: %s, size: %s, sha1sum: %s" % (self.path, self.type,
|
||||||
self.size, self.hash)
|
self.size, self.hash)
|
||||||
return s
|
return s
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user