Missing files from previous commit

This commit is contained in:
evm
2021-04-23 13:04:25 -04:00
parent 512f988d58
commit 8edeb734fc
5 changed files with 16 additions and 2 deletions

1
allstar/__init__.py Normal file
View File

@@ -0,0 +1 @@
from .allstar import Repo, Package

View File

@@ -105,8 +105,7 @@ class Package(object):
self.binaries = self.index['binaries']
def _fix_index(self, index):
"""Deal with buggy json generation from ALLSTAR
where having multiple "manual" entries was improperly handled.
"""Deal with buggy json from ALLSTAR
Have to change multiple "manual" entries to a json list
"""
index_offset = 0

2
allstar/error.py Normal file
View File

@@ -0,0 +1,2 @@
class AllstarPackageError(Exception):
pass

11
allstar/util.py Normal file
View File

@@ -0,0 +1,11 @@
def package_part(pkg):
if pkg <= 'libapr-dev':
return 1
elif pkg <= 'liblingua-stem-perl':
return 2
elif pkg <= 'mate-system-tools':
return 3
elif pkg <= 'zzuf':
return 4
else:
return None

1
allstar/version.py Normal file
View File

@@ -0,0 +1 @@
__version__ = '0.1.0'