diff options
author | Michael E Brown <mebrown@michaels-house.net> | 2007-12-11 13:54:34 -0600 |
---|---|---|
committer | Michael E Brown <mebrown@michaels-house.net> | 2007-12-11 13:54:34 -0600 |
commit | 5dc1fc5232eb10671ea3a4abe3b3eaea46c1fff3 (patch) | |
tree | 5a5362781cf0e168bea7fa51b7fffa9aba78af0a /py | |
parent | e7ddbe8fe2b81f74999318c59d2a37a0d18d72d0 (diff) | |
download | mock-5dc1fc5232eb10671ea3a4abe3b3eaea46c1fff3.tar.gz mock-5dc1fc5232eb10671ea3a4abe3b3eaea46c1fff3.tar.xz mock-5dc1fc5232eb10671ea3a4abe3b3eaea46c1fff3.zip |
let yum resolvedep run w/privs because it has to download additional metadata sometimes.
Diffstat (limited to 'py')
-rw-r--r-- | py/mock/backend.py | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/py/mock/backend.py b/py/mock/backend.py index 98c1a52..c18026f 100644 --- a/py/mock/backend.py +++ b/py/mock/backend.py @@ -307,17 +307,12 @@ class Root(object): def installSrpmDeps(self, *srpms): """figure out deps from srpm. call yum to install them""" arg_string = self.preExistingDeps - self.uidManager.dropPrivsTemp() - try: - for hdr in mock.util.yieldSrpmHeaders(srpms, plainRpmOk=1): - # get text buildreqs - a = mock.util.requiresTextFromHdr(hdr) - b = mock.util.getAddtlReqs(hdr, self.more_buildreqs) - for item in mock.util.uniqReqs(a, b): - arg_string = arg_string + " '%s'" % item - - finally: - self.uidManager.restorePrivs() + for hdr in mock.util.yieldSrpmHeaders(srpms, plainRpmOk=1): + # get text buildreqs + a = mock.util.requiresTextFromHdr(hdr) + b = mock.util.getAddtlReqs(hdr, self.more_buildreqs) + for item in mock.util.uniqReqs(a, b): + arg_string = arg_string + " '%s'" % item # everything exists, okay, install them all. # pass build reqs (as strings) to installer |