diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-24 03:07:06 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-30 01:30:55 +0100 |
commit | 91126230cde39e3be3f07daa945cde9dc24af4fc (patch) | |
tree | b74298c4df3ae88356003629c4853ec343306f37 /src/lib/Client/Tools/APT.py | |
parent | c95ecd612512677a3c13659543359ccf666f0548 (diff) | |
download | bcfg2-91126230cde39e3be3f07daa945cde9dc24af4fc.tar.gz bcfg2-91126230cde39e3be3f07daa945cde9dc24af4fc.tar.bz2 bcfg2-91126230cde39e3be3f07daa945cde9dc24af4fc.zip |
Client: allow pre-Actions and important-Paths to enable installsdebian/1.2.3-3
This is used to first update the apt repositories and than install
all current versions in one bcfg2-run. Also the installation of
software from custom repositories (that are configured on the client
via bcfg2) should be possible on the first run.
Diffstat (limited to 'src/lib/Client/Tools/APT.py')
-rw-r--r-- | src/lib/Client/Tools/APT.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/Client/Tools/APT.py b/src/lib/Client/Tools/APT.py index dc6c9e6aa..156c86a2b 100644 --- a/src/lib/Client/Tools/APT.py +++ b/src/lib/Client/Tools/APT.py @@ -113,6 +113,11 @@ class APT(Bcfg2.Client.Tools.Tool): type='deb', version=version) \ for (name, version) in extras] + def Inventory(self, states, structures=[]): + # reload pkg cache + self.pkg_cache.open(None) + Bcfg2.Client.Tools.Tool.Inventory(self, states, structures) + def VerifyDebsums(self, entry, modlist): output = self.cmd.run("%s -as %s" % (DEBSUMS, entry.get('name')))[1] if len(output) == 1 and "no md5sums for" in output[0]: |