* generate absolute paths by default, add comment. (fix #360)
This commit is contained in:
+4
-1
@@ -89,7 +89,10 @@ class Index(XmlFile):
|
|||||||
# TODO: in the future we'll do all of this with purl/pfile/&helpers
|
# 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
|
# After that, we'll remove the ugly repo_uri parameter from this
|
||||||
# function.
|
# 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
|
# check package semantics
|
||||||
if md.verify():
|
if md.verify():
|
||||||
self.packages.append(md.package)
|
self.packages.append(md.package)
|
||||||
|
|||||||
Reference in New Issue
Block a user