Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

Commit

Permalink
Add arm support
Browse files Browse the repository at this point in the history
  • Loading branch information
JMSwag committed Jun 4, 2017
1 parent e79e2fd commit 999439c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyupdater/package_handler/package.py
Expand Up @@ -49,7 +49,7 @@ def parse_platform(name):
"""
log.debug('Parsing "%s" for platform info', name)
try:
re_str = r'-(?P<platform>mac|win|nix[6]?[4]?)-'
re_str = r'-(?P<platform>arm[6]?[4]|mac|nix[6]?[4]?|win)-'
data = re.compile(re_str).search(name)
platform_name = data.groupdict()['platform']
log.debug('Platform name is: %s', platform_name)
Expand Down Expand Up @@ -169,7 +169,7 @@ class Package(object):
filename (str): name of update file
"""
# Used to parse name from archive filename
name_regex = re.compile(r'(?P<name>[\w -]+)-[win|mac|nix]')
name_regex = re.compile(r'(?P<name>[\w -]+)-[arm|mac|nix|win]')

def __init__(self, filename):
self.name = None
Expand Down

0 comments on commit 999439c

Please sign in to comment.