Skip to content

Commit

Permalink
Update nodejs framework
Browse files Browse the repository at this point in the history
  • Loading branch information
LyzardKing committed May 17, 2023
1 parent 278f1ad commit 68074ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions umake/frameworks/nodejs.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ class NodejsLang(umake.frameworks.baseinstaller.BaseInstaller):

def __init__(self, **kwargs):
super().__init__(name="Nodejs Lang", description=_("Nodejs stable"), is_category_default=True,
only_on_archs=['i386', 'amd64'],
only_on_archs=['amd64'],
download_page="https://nodejs.org/en/download/current",
checksum_type=ChecksumType.sha256,
dir_to_decompress_in_tarball="node*",
required_files_path=[os.path.join("bin", "node")],
**kwargs)
arch_trans = {
"amd64": "x64",
"i386": "x86"
"aarch64": "arm64"
}

def download_provider_page(self):
Expand All @@ -72,7 +72,7 @@ def parse_shasum_page(self, result):
for line in result[self.download_page].buffer:
line_content = line.decode()
with suppress(AttributeError):
shasum_url = re.search(r'a href="(.*SHASUMS\d\d\d\.txt\.asc)"', line_content).group(1)
shasum_url = re.search(r'a href=\"(https://nodejs\.org/dist/v[\d\.]+/SHASUMS\d\d\d\.txt\.asc)\"', line_content).group(1)

if not result:
logger.error("Download page changed its syntax or is not parsable")
Expand Down

0 comments on commit 68074ce

Please sign in to comment.