RPackage: fix assert
This commit is contained in:
parent
d564985fb2
commit
ee7025755a
@ -65,7 +65,7 @@ def install(self, pkg, spec, prefix):
|
|||||||
p = re.search(r"^[\w_-]+", r_dep) # first word, incl. underscore or dash
|
p = re.search(r"^[\w_-]+", r_dep) # first word, incl. underscore or dash
|
||||||
v = re.search("(?<=[(]).*(?=[)])", r_dep) # everything between parentheses
|
v = re.search("(?<=[(]).*(?=[)])", r_dep) # everything between parentheses
|
||||||
# require valid package
|
# require valid package
|
||||||
assert(p, f"Unable to find package name in {r_dep}")
|
assert p, f"Unable to find package name in {r_dep}"
|
||||||
r_spec = f"r-{p[0].strip().lower()}" if p[0].lower() != "r" else "r"
|
r_spec = f"r-{p[0].strip().lower()}" if p[0].lower() != "r" else "r"
|
||||||
# allow minimum or pinned versions
|
# allow minimum or pinned versions
|
||||||
if v:
|
if v:
|
||||||
|
Loading…
Reference in New Issue
Block a user