From 13a48c40bb0ea738c5ad9bcd55dabf205a7dbf50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eray=20=C3=96zkural?= Date: Fri, 12 Aug 2005 11:24:23 +0000 Subject: [PATCH] * generate absolute paths by default, add comment. (fix #360) --- pisi/index.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pisi/index.py b/pisi/index.py index 1c0cd740..abc729ae 100644 --- a/pisi/index.py +++ b/pisi/index.py @@ -89,7 +89,10 @@ class Index(XmlFile): # TODO: in the future we'll do all of this with purl/pfile/&helpers # After that, we'll remove the ugly repo_uri parameter from this # function. - md.package.packageURI = util.removepathprefix(repo_uri, path) + # FIXME: for now, do all paths absolute, support relative URIs + # in the future + #md.package.packageURI = util.removepathprefix(repo_uri, path) + md.package.packageURI = os.path.realpath(path) # check package semantics if md.verify(): self.packages.append(md.package)