summaryrefslogtreecommitdiff
path: root/cloudinit/distros/__init__.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2012-06-29 20:06:32 -0400
committerScott Moser <smoser@ubuntu.com>2012-06-29 20:06:32 -0400
commitd95662579c59f8866721483e2b2c8b4ca0099eae (patch)
treea6be3eeba78db4fd063d933bd75acf27e5b2900f /cloudinit/distros/__init__.py
parentcc23412d7a4841667179d70571689bb41a167d32 (diff)
downloadvyos-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/__init__.py')
-rw-r--r--cloudinit/distros/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/cloudinit/distros/__init__.py b/cloudinit/distros/__init__.py
index c324ddf6..da4d0180 100644
--- a/cloudinit/distros/__init__.py
+++ b/cloudinit/distros/__init__.py
@@ -71,6 +71,10 @@ class Distro(object):
def package_command(self, cmd, args=None):
raise NotImplementedError()
+ @abc.abstractmethod
+ def update_package_sources(self):
+ raise NotImplementedError()
+
def get_package_mirror(self):
return self.get_option('package_mirror')