From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/pms-test-suite:master commit in: pmstestsuite/pm/
Date: Fri, 5 Aug 2011 17:09:26 +0000 (UTC) [thread overview]
Message-ID: <bbbd7a62321e919b0d3d5dc62075e0146fd8560c.mgorny@gentoo> (raw)
commit: bbbd7a62321e919b0d3d5dc62075e0146fd8560c
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 5 16:14:35 2011 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Aug 5 16:14:35 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=bbbd7a62
Keep PM lists separate.
---
pmstestsuite/pm/__init__.py | 6 ++++--
pmstestsuite/pm/paludispm.py | 4 ++++
pmstestsuite/pm/pkgcorepm.py | 4 ++++
pmstestsuite/pm/portagepm.py | 4 ++++
4 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/pmstestsuite/pm/__init__.py b/pmstestsuite/pm/__init__.py
index 4da1fba..4667fab 100644
--- a/pmstestsuite/pm/__init__.py
+++ b/pmstestsuite/pm/__init__.py
@@ -26,12 +26,14 @@ class PackageManager(ABCObject):
"""
pm_options = []
- repo_paths = []
- pkg_queue = []
package_limit = None
_current_op = None
+ def __init__(self):
+ self.repo_paths = []
+ self.pkg_queue = []
+
@abstractproperty
def name(self):
"""
diff --git a/pmstestsuite/pm/paludispm.py b/pmstestsuite/pm/paludispm.py
index df1a686..bb65a13 100644
--- a/pmstestsuite/pm/paludispm.py
+++ b/pmstestsuite/pm/paludispm.py
@@ -25,6 +25,10 @@ class PaludisPM(_PaludisPM, PackageManager):
common_cave_opts = ['--lazy', '--preserve-world', '--execute']
requires_manifests = True
+ def __init__(self, *args, **kwargs):
+ PackageManager.__init__(self)
+ _PaludisPM.__init__(self, *args, **kwargs)
+
def _spawn_cave(self, cpvs, action, opts = []):
return subprocess.Popen(['cave', '--log-level', 'warning', action]
+ self.common_cave_opts + opts + self.pm_options
diff --git a/pmstestsuite/pm/pkgcorepm.py b/pmstestsuite/pm/pkgcorepm.py
index b430b2d..f543ec9 100644
--- a/pmstestsuite/pm/pkgcorepm.py
+++ b/pmstestsuite/pm/pkgcorepm.py
@@ -22,6 +22,10 @@ class PkgCorePM(_PkgCorePM, PackageManager):
common_pmerge_opts = ['--oneshot']
requires_manifests = False
+ def __init__(self, *args, **kwargs):
+ PackageManager.__init__(self)
+ _PkgCorePM.__init__(self, *args, **kwargs)
+
@property
def package_limit(self):
return 1
diff --git a/pmstestsuite/pm/portagepm.py b/pmstestsuite/pm/portagepm.py
index b5479b8..d2139b0 100644
--- a/pmstestsuite/pm/portagepm.py
+++ b/pmstestsuite/pm/portagepm.py
@@ -22,6 +22,10 @@ class PortagePM(_PortagePM, PackageManager):
repo_paths = []
+ def __init__(self, *args, **kwargs):
+ PackageManager.__init__(self)
+ _PortagePM.__init__(self, *args, **kwargs)
+
def remanifest(self, paths):
startdir = os.getcwd()
for path in paths:
next reply other threads:[~2011-08-05 17:10 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-05 17:09 Michał Górny [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-08-08 21:31 [gentoo-commits] proj/pms-test-suite:master commit in: pmstestsuite/pm/ Michał Górny
2011-08-05 19:54 Michał Górny
2011-08-05 17:09 Michał Górny
2011-08-03 20:17 Michał Górny
2011-08-03 20:17 Michał Górny
2011-07-31 15:10 Michał Górny
2011-06-23 9:51 [gentoo-commits] proj/pms-test-suite:master commit in: PMSTestSuite/pm/ Michał Górny
2011-06-23 9:51 Michał Górny
2011-06-23 9:51 Michał Górny
2011-06-23 9:51 Michał Górny
2011-06-21 21:25 Michał Górny
2011-06-21 20:58 Michał Górny
2011-06-21 20:58 Michał Górny
2011-06-21 20:58 Michał Górny
2011-06-21 20:58 Michał Górny
2011-06-21 20:58 Michał Górny
2011-06-21 17:58 Michał Górny
2011-06-21 17:54 Michał Górny
2011-06-21 17:54 Michał Górny
2011-06-21 17:54 Michał Górny
2011-06-21 17:54 Michał Górny
2011-06-21 15:26 Michał Górny
2011-06-21 15:26 Michał Górny
2011-06-20 19:20 Michał Górny
2011-06-16 19:49 Michał Górny
2011-06-16 19:49 Michał Górny
2011-06-14 12:35 Michał Górny
2011-06-07 17:16 Michał Górny
2011-06-07 17:16 Michał Górny
2011-06-07 15:20 Michał Górny
2011-06-07 14:54 Michał Górny
2011-06-06 7:36 Michał Górny
2011-05-31 21:06 Michał Górny
2011-05-31 19:18 Michał Górny
2011-05-31 19:18 Michał Górny
2011-05-31 12:14 Michał Górny
2011-05-31 12:14 Michał Górny
2011-05-29 18:57 Michał Górny
2011-05-29 18:57 Michał Górny
2011-05-26 9:45 Michał Górny
2011-05-25 16:24 Michał Górny
2011-05-25 16:24 Michał Górny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bbbd7a62321e919b0d3d5dc62075e0146fd8560c.mgorny@gentoo \
--to=mgorny@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox