diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-24 03:07:06 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2014-02-26 13:38:15 +0100 |
commit | 4d64d990b7a12ec2400488358fd935f0c5894e24 (patch) | |
tree | 8c52811dea32b943a979f11c696aa81bc2598172 /src/lib/Bcfg2/Client/Tools | |
parent | da1a7fa1c13d6c7a1d59f3239f1712e3a85a5ab4 (diff) | |
download | bcfg2-4d64d990b7a12ec2400488358fd935f0c5894e24.tar.gz bcfg2-4d64d990b7a12ec2400488358fd935f0c5894e24.tar.bz2 bcfg2-4d64d990b7a12ec2400488358fd935f0c5894e24.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/Bcfg2/Client/Tools')
-rw-r--r-- | src/lib/Bcfg2/Client/Tools/APT.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/Bcfg2/Client/Tools/APT.py b/src/lib/Bcfg2/Client/Tools/APT.py index 420fad7df..825fcf22f 100644 --- a/src/lib/Bcfg2/Client/Tools/APT.py +++ b/src/lib/Bcfg2/Client/Tools/APT.py @@ -106,6 +106,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" % |