index: Remove obfuscated and outdated comments
This commit is contained in:
+2
-3
@@ -181,10 +181,9 @@ def add_package(params):
|
|||||||
md.package.packageHash = util.sha1_file(path)
|
md.package.packageHash = util.sha1_file(path)
|
||||||
if ctx.config.options and ctx.config.options.absolute_urls:
|
if ctx.config.options and ctx.config.options.absolute_urls:
|
||||||
md.package.packageURI = os.path.realpath(path)
|
md.package.packageURI = os.path.realpath(path)
|
||||||
else: # create relative path by default
|
else:
|
||||||
# TODO: in the future well do all of this with purl/pfile/&helpers
|
|
||||||
# really? heheh -- future exa
|
|
||||||
md.package.packageURI = util.removepathprefix(repo_uri, path)
|
md.package.packageURI = util.removepathprefix(repo_uri, path)
|
||||||
|
|
||||||
# check package semantics
|
# check package semantics
|
||||||
errs = md.errors()
|
errs = md.errors()
|
||||||
if md.errors():
|
if md.errors():
|
||||||
|
|||||||
Reference in New Issue
Block a user