diff options
author | Scott Moser <smoser@ubuntu.com> | 2012-06-29 20:06:32 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2012-06-29 20:06:32 -0400 |
commit | d95662579c59f8866721483e2b2c8b4ca0099eae (patch) | |
tree | a6be3eeba78db4fd063d933bd75acf27e5b2900f /cloudinit/distros/debian.py | |
parent | cc23412d7a4841667179d70571689bb41a167d32 (diff) | |
download | vyos-cloud-init-d95662579c59f8866721483e2b2c8b4ca0099eae.tar.gz vyos-cloud-init-d95662579c59f8866721483e2b2c8b4ca0099eae.zip |
add update_package_sources to distro class
Previously update_package_sources was a private class
(_update_package_sources). The apt_update_upgrade class called it.
It does make sense that things would want to call this independently
of installing packages. Therefore, expose it as a non hidden method.
Diffstat (limited to 'cloudinit/distros/debian.py')
-rw-r--r-- | cloudinit/distros/debian.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/distros/debian.py b/cloudinit/distros/debian.py index 3a0cae19..3247d7ce 100644 --- a/cloudinit/distros/debian.py +++ b/cloudinit/distros/debian.py @@ -53,7 +53,7 @@ class Distro(distros.Distro): util.write_file(out_fn, "\n".join(contents)) def install_packages(self, pkglist): - self._update_package_sources() + self.update_package_sources() self.package_command('install', pkglist) def _write_network(self, settings): @@ -144,6 +144,6 @@ class Distro(distros.Distro): # Allow the output of this to flow outwards (ie not be captured) util.subp(cmd, env=e, capture=False) - def _update_package_sources(self): + def update_package_sources(self): self._runner.run("update-sources", self.package_command, ["update"], freq=PER_INSTANCE) |