diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-11-28 20:00:27 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-11-28 20:00:27 -0500 |
commit | 66e4f518ffef04779ed95012fde212270845e068 (patch) | |
tree | 3a55ad60b3453eecca862c54e2824fddf1820ce8 /main/utils.py | |
parent | 03a028eb037b579a421be4f7d15c5ff02072ff46 (diff) | |
parent | dbb508b7222081b523ce3e0bd2b69f5fea6c7050 (diff) |
Merge branch 'master-nomake'
Diffstat (limited to 'main/utils.py')
-rw-r--r-- | main/utils.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/main/utils.py b/main/utils.py index 9ee8db58..97cc540a 100644 --- a/main/utils.py +++ b/main/utils.py @@ -187,4 +187,18 @@ class PackageStandin(object): return '/packages/%s/%s/%s/' % ( self.repo.name.lower(), self.arch.name, self.pkgbase) + +class DependStandin(object): + '''Resembles a Depend object, and has a few of the same fields, but is + really a link to a base package rather than a single package.''' + def __init__(self, depends): + self._depends = depends + first = depends[0] + self.name = first.name + self.version = first.version + self.comparison = first.comparison + self.description = first.description + self.deptype = first.deptype + self.pkg = first.pkg.base_package() or PackageStandin(first.pkg) + # vim: set ts=4 sw=4 et: |