* generate absolute paths by default, add comment. (fix #360)

This commit is contained in:
Eray Özkural
2005-08-12 11:24:23 +00:00
parent 02fc3e2606
commit 13a48c40bb
+4 -1
View File
@@ -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)