summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Tools
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2013-01-24 03:07:06 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2013-03-06 04:52:35 +0100
commit56f89e7ed1b64e424e8d8e65695549e14b40a2f3 (patch)
tree44415a8bdaa69faa3ceb5a0623af7fbffeef7de8 /src/lib/Client/Tools
parent40e77f17110926dd1caa577c7564e9e2ae7a91de (diff)
downloadbcfg2-56f89e7ed1b64e424e8d8e65695549e14b40a2f3.tar.gz
bcfg2-56f89e7ed1b64e424e8d8e65695549e14b40a2f3.tar.bz2
bcfg2-56f89e7ed1b64e424e8d8e65695549e14b40a2f3.zip
Client: allow pre-Actions and important-Paths to enable installs
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')
-rw-r--r--src/lib/Client/Tools/APT.py5
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]: