[yum-cvs] yum cli.py,1.265,1.266
Seth Vidal
skvidal at linux.duke.edu
Thu Apr 26 07:00:50 UTC 2007
Update of /home/groups/yum/cvs/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv16311
Modified Files:
cli.py
Log Message:
clean up some cases where we output 'Setting up Repositories' when we really
don't need to.
Index: cli.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/cli.py,v
retrieving revision 1.265
retrieving revision 1.266
diff -u -r1.265 -r1.266
--- cli.py 26 Apr 2007 01:10:18 -0000 1.265
+++ cli.py 26 Apr 2007 07:00:48 -0000 1.266
@@ -96,13 +96,16 @@
'skipping reposetup, pkgsack exists')
return self._repos
-
- self.verbose_logger.log(yum.logginglevels.INFO_2,
- 'Setting up repositories')
+ if not thisrepo:
+ self.verbose_logger.log(yum.logginglevels.INFO_2,
+ 'Setting up repositories')
# Call parent class to do the bulk of work
# (this also ensures that reposetup plugin hook is called)
- yum.YumBase._getRepos(self, thisrepo=thisrepo)
+ if thisrepo:
+ yum.YumBase._getRepos(self, thisrepo=thisrepo, doSetup=True)
+ else:
+ yum.YumBase._getRepos(self, thisrepo=thisrepo)
if dosack: # so we can make the dirs and grab the repomd.xml but not import the md
self.verbose_logger.log(yum.logginglevels.INFO_2,
More information about the Yum-cvs-commits
mailing list