summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTill Maas <opensource@till.name>2014-02-14 19:16:03 +0100
committerTill Maas <opensource@till.name>2014-02-14 19:16:03 +0100
commitb69819f282fa40b4fc5c44096b294f268359e15f (patch)
treefc39262fc8752b9e8d569348894f4aa9d4ba2b4c
parentf4295044c4ae0c7f3b58e2ff5a195fc21051c0f9 (diff)
downloadcnucnu-b69819f282fa40b4fc5c44096b294f268359e15f.zip
cnucnu-b69819f282fa40b4fc5c44096b294f268359e15f.tar.gz
cnucnu-b69819f282fa40b4fc5c44096b294f268359e15f.tar.xz
Package: Sort attributes
-rwxr-xr-xcnucnu/package_list.py16
1 files changed, 7 insertions, 9 deletions
diff --git a/cnucnu/package_list.py b/cnucnu/package_list.py
index ac7a98e..2cc23e4 100755
--- a/cnucnu/package_list.py
+++ b/cnucnu/package_list.py
@@ -104,16 +104,20 @@ class Repository:
class Package(object):
-
def __init__(self, name, regex, url, repo=Repository(), scm=SCM(),
br=BugzillaReporter(), package_list=None):
# :TODO: add some sanity checks
self.name = name
- self.raw_regex = None
- self.raw_url = None
+ self.raw_regex = regex
self.regex = regex
+ self.raw_url = url
self.url = url
+ self.repo = repo
+ self.repo_name = repo.name
+ self.scm = scm
+ self.br = br
+ self.package_list = package_list
self._html = None
self._latest_upstream = None
@@ -122,12 +126,6 @@ class Package(object):
self._repo_release = None
self._rpm_diff = None
- self.repo = repo
- self.repo_name = repo.name
- self.scm = scm
- self.br = br
- self.package_list = package_list
-
def _invalidate_caches(self):
self._latest_upstream = None
self._upstream_versions = None