From bc6d3042472635154588b5135f180819781e7673 Mon Sep 17 00:00:00 2001 From: Paul Nasrat Date: Mon, 9 Oct 2006 19:16:26 +0000 Subject: Fix cd/nfsiso installs for new yum api --- ChangeLog | 5 +++++ yuminstall.py | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/ChangeLog b/ChangeLog index c6c80c069..47b7d4bef 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-10-09 Paul Nasrat + + * yuminstall.py (AnacondaYumRepo.getPackage): Fix for yum api + change supporting basepath that we use for split media hinting. + 2006-10-09 Chris Lumens * network.py (Network.lookupHostname): Fix traceback on looking up diff --git a/yuminstall.py b/yuminstall.py index 2f2aa6756..531ca1e1b 100644 --- a/yuminstall.py +++ b/yuminstall.py @@ -191,6 +191,16 @@ class AnacondaYumRepo(YumRepository): self.setAttribute('pkgdir', root) self.setAttribute('hdrdir', '/tmp/cache/headers') + def getPackage(self, package, checkfunc = None, text = None, cache = True): + remote = package.returnSimple('relativepath') + local = package.localPkg() + + return self.__get(relative=remote, + local=local, + checkfunc=checkfunc, + text=text, + cache=cache + ) class YumSorter(yum.YumBase): -- cgit