From ce6357b6717f4c85ecdaadd7108c4aeec3851d83 Mon Sep 17 00:00:00 2001 From: Ivo De Decker Date: Fri, 6 Dec 2013 22:45:01 +0100 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")