diff --git a/pisi/cli/commands.py b/pisi/cli/commands.py index 0f8b5890..25d5c16e 100644 --- a/pisi/cli/commands.py +++ b/pisi/cli/commands.py @@ -786,7 +786,7 @@ Usage: info ... if self.options.files: print fileinfo else: - print fileinfo.path + print "/" + fileinfo.path else: ctx.ui.warning(_('File information not available')) if not self.options.short: diff --git a/pisi/files.py b/pisi/files.py index 9f914f3f..90ea6fa9 100644 --- a/pisi/files.py +++ b/pisi/files.py @@ -31,7 +31,7 @@ class FileInfo: t_Permanent = [ autoxml.String, autoxml.optional ] 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) return s