aboutsummaryrefslogtreecommitdiff
path: root/hwpack
diff options
context:
space:
mode:
authorMichael Hudson <michael.hudson@linaro.org>2010-12-16 14:33:26 +1300
committerMichael Hudson <michael.hudson@linaro.org>2010-12-16 14:33:26 +1300
commitaa6e3adcced534613c837401286ea87a2416e29b (patch)
treeca029167c083568f749e7e91826f73c8e8d396ce /hwpack
parent260a6cffd5ee31b4504278b78901ee220a7833ce (diff)
small tidy
Diffstat (limited to 'hwpack')
-rw-r--r--hwpack/builder.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/hwpack/builder.py b/hwpack/builder.py
index 8e049f2..8450604 100644
--- a/hwpack/builder.py
+++ b/hwpack/builder.py
@@ -13,6 +13,9 @@ from hwpack.packages import (
logger = logging.getLogger(__name__)
+LOCAL_ARCHIVE_LABEL='hwpack-local'
+
+
class ConfigFileMissing(Exception):
def __init__(self, filename):
@@ -48,11 +51,12 @@ class HardwarePackBuilder(object):
local_archive_maker.sources_entry_for_debs(
[FetchedPackage.from_deb(deb)
for deb in self.local_debs],
- 'hwpack-local'))
+ LOCAL_ARCHIVE_LABEL))
hwpack.add_apt_sources(sources)
logger.info("Fetching packages")
fetcher = PackageFetcher(
- sources.values(), architecture=architecture, prefer_label='hwpack-local')
+ sources.values(), architecture=architecture,
+ prefer_label=LOCAL_ARCHIVE_LABEL)
with fetcher:
fetcher.ignore_packages(self.config.assume_installed)
packages = fetcher.fetch_packages(