[yum-cvs] yum ChangeLog,1.65,1.66 yum-updatesd.py,1.14,1.15
Luke Macken
lmacken at linux.duke.edu
Wed Aug 9 14:44:09 UTC 2006
Update of /home/groups/yum/cvs/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv5798
Modified Files:
ChangeLog yum-updatesd.py
Log Message:
2006-08-09 10:40 lmacken
* yum/update_md.py:
Rewrite to handle new metadata schema.
Allow scripted metadata access.
Accept YumRepository objects in add().
Cache notices for quick searching
* yum-updatesd.py:
Remove (most of) the old metadata retrieval code.
Try and grab the update 'type' from the metadata so we can check if we
are dealing with any security updates.
Index: ChangeLog
===================================================================
RCS file: /home/groups/yum/cvs/yum/ChangeLog,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -r1.65 -r1.66
--- ChangeLog 9 Aug 2006 04:19:49 -0000 1.65
+++ ChangeLog 9 Aug 2006 14:44:07 -0000 1.66
@@ -1,3 +1,16 @@
+2006-08-09 10:40 lmacken
+
+ * yum/update_md.py:
+ Rewrite to handle new metadata schema.
+ Allow scripted metadata access.
+ Accept YumRepository objects in add().
+ Cache notices for quick searching
+
+ * yum-updatesd.py:
+ Remove (most of) the old metadata retrieval code.
+ Try and grab the update 'type' from the metadata so we can check if we
+ are dealing with any security updates.
+
2006-08-09 00:14 skvidal
* yum.spec, yum/__init__.py: mark as 2.9.4
Index: yum-updatesd.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum-updatesd.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- yum-updatesd.py 21 Jun 2006 15:56:20 -0000 1.14
+++ yum-updatesd.py 9 Aug 2006 14:44:07 -0000 1.15
@@ -309,9 +309,9 @@
if pkg.repoid not in repos:
repo = self.repos.getRepo(pkg.repoid)
repos.append(repo.id)
- try:
+ try: # grab the updateinfo.xml.gz from the repodata
md = repo.retrieveMD('updateinfo')
- except:
+ except Exception, e: # can't find any; silently move on
continue
md = gzip.open(md)
self.updateMetadata.add(md)
@@ -331,16 +331,11 @@
"summary": pkg.returnSimple("summary") or "",
}
+ # check if any updateinfo is available
md = self.updateMetadata.get_notice((pkg.name, pkg.ver, pkg.rel))
if md:
- pkgDict['update_id'] = md.update_id or ''
- pkgDict['release_date'] = md.release_date or ''
- pkgDict['title'] = md.title or ''
- pkgDict['status'] = md.status or ''
- pkgDict['description'] = md.description or ''
- pkgDict['distribution'] = md.distribution or ''
- pkgDict['cves'] = string.join(md.cves) or ''
- pkgDict['urls'] = string.join(md.urls) or ''
+ # right now we only want to know if it is a security update
+ pkgDict['type'] = md['type']
return pkgDict
More information about the Yum-cvs-commits
mailing list