From e6fae7ca2958cc35a3f015226bde340b251866f9 Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Dec 07 2017 19:47:09 +0000 Subject: fix rpm components check --- diff --git a/www/kojiweb/index.py b/www/kojiweb/index.py index d616ff7..f6792f9 100644 --- a/www/kojiweb/index.py +++ b/www/kojiweb/index.py @@ -1432,7 +1432,7 @@ def archiveinfo(environ, archiveID, fileOrder='name', fileStart=None, buildrootO values['wininfo'] = wininfo values['builtInRoot'] = builtInRoot values['buildroots'] = buildroots - values['show_rpm_components'] = archive.get('rootid', False) + values['show_rpm_components'] = server.listRPMs(imageID=archive['id'], queryOpts={'limit':1}) values['show_archive_components'] = server.listArchives(imageID=archive['id'], queryOpts={'limit':1}) return _genHTML(environ, 'archiveinfo.chtml')