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

Commit

Permalink
Merge branch 'issue-67'
Browse files Browse the repository at this point in the history
  • Loading branch information
JMSwag committed Jun 4, 2017
2 parents e79e2fd + cd72ca9 commit 4673948
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions docs/changelog.md
Expand Up @@ -7,6 +7,9 @@

- Client
- Ability to specify a custom folder for update files. @mayli

- PyUpdater
- Arm support

###Updated

Expand Down
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 4673948

Please sign in to comment.