From 76c540ba7c84ddcf9102ac858b9afc8dfd589561 Mon Sep 17 00:00:00 2001 From: Faik Uygur Date: Mon, 28 Aug 2006 19:50:53 +0000 Subject: [PATCH] * show path from root. --- pisi/cli/commands.py | 2 +- pisi/files.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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