[yum-cvs] yum/yum sqlitesack.py,1.47.2.1,1.47.2.2
Seth Vidal
skvidal at linux.duke.edu
Tue Nov 14 21:14:11 UTC 2006
Update of /home/groups/yum/cvs/yum/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv25593/yum
Modified Files:
Tag: yum-3_0_X
sqlitesack.py
Log Message:
check in changelog changes to 3.0.X
Index: sqlitesack.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/sqlitesack.py,v
retrieving revision 1.47.2.1
retrieving revision 1.47.2.2
diff -u -r1.47.2.1 -r1.47.2.2
--- sqlitesack.py 18 Oct 2006 04:18:04 -0000 1.47.2.1
+++ sqlitesack.py 14 Nov 2006 21:14:09 -0000 1.47.2.2
@@ -116,10 +116,11 @@
result = []
if not self._changelog:
if not self.sack.otherdb.has_key(self.repo):
- #FIXME should this raise an exception or should it try to populate
- # the otherdb
- self._changelog = result
- return
+ try:
+ self.sack.populate(self.repo, with='otherdata')
+ except Errors.RepoError:
+ self._changelog = result
+ return
cache = self.sack.otherdb[self.repo]
cur = cache.cursor()
cur.execute("select changelog.date as date, "
@@ -129,7 +130,8 @@
"and packages.pkgKey = changelog.pkgKey", self.pkgId)
for ob in cur.fetchall():
result.append( (ob['date'], ob['author'], ob['changelog']) )
- self._changelog = result
+ self._changelog = result
+ return
def returnChangelog(self):
self._loadChangelog()
More information about the Yum-cvs-commits
mailing list