mirror of
https://github.com/JHUAPL/ALLSTAR.git
synced 2026-01-10 06:58:09 -05:00
Missing files from previous commit
This commit is contained in:
1
allstar/__init__.py
Normal file
1
allstar/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from .allstar import Repo, Package
|
||||
@@ -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
2
allstar/error.py
Normal file
@@ -0,0 +1,2 @@
|
||||
class AllstarPackageError(Exception):
|
||||
pass
|
||||
11
allstar/util.py
Normal file
11
allstar/util.py
Normal 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
1
allstar/version.py
Normal file
@@ -0,0 +1 @@
|
||||
__version__ = '0.1.0'
|
||||
Reference in New Issue
Block a user