aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMykyta Holubakha <hilobakho@gmail.com>2017-07-22 05:03:41 +0300
committerMykyta Holubakha <hilobakho@gmail.com>2017-07-22 05:08:28 +0300
commit12a4d649118f1f64c951cf66f72fdd910e9e6b73 (patch)
treeb427daffc7d069ffd6a12f6c0bd173b44adf0f79 /pomu/package.py
parentFixed an off-by-one error (diff)
downloadpomu-12a4d649118f1f64c951cf66f72fdd910e9e6b73.tar.gz
pomu-12a4d649118f1f64c951cf66f72fdd910e9e6b73.tar.bz2
pomu-12a4d649118f1f64c951cf66f72fdd910e9e6b73.zip
Generify the repo code to allow merging patches
Rename command: install -> import
Diffstat (limited to 'pomu/package.py')
-rw-r--r--pomu/package.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/pomu/package.py b/pomu/package.py
index 2651774..e145b88 100644
--- a/pomu/package.py
+++ b/pomu/package.py
@@ -151,3 +151,12 @@ class Package():
if self.slot != '0':
s += self.slot
return s
+
+class PatchList():
+ """A class to represent a sequence of patches (can be merged in the repo)"""
+ def __init__(self, category, name, version, patches, slot='0'):
+ self.category = category
+ self.name = name
+ self.version = version
+ self.slot = slot
+ self.patches = patches