From 9d79ce7297feead957ad1712ec9f44f4e87b0367 Mon Sep 17 00:00:00 2001 From: Ivo De Decker Date: Mon, 7 Oct 2013 19:52:43 +0000 Subject: [PATCH] if hintsdir is defined, read hints from there This introduces a new variable HINTSDIR, which overrides the location of the Hints dir (normally it is read from the UNSTABLE dir). Please note that this is the location of the dir that contains the Hints dir. Signed-off-by: Niels Thykier --- britney.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/britney.py b/britney.py index 177f5dd..ee09123 100755 --- a/britney.py +++ b/britney.py @@ -256,7 +256,10 @@ class Britney(object): apt_pkg.init() self.sources = {} self.binaries = {} - self.hints = self.read_hints(self.options.unstable) + try: + self.hints = self.read_hints(self.options.hintsdir) + except AttributeError: + self.hints = self.read_hints(self.options.unstable) if self.options.nuninst_cache: self.__log("Not building the list of non-installable packages, as requested", type="I")