#!/usr/bin/python -t # -*- mode: Python; indent-tabs-mode: nil; -*- # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA import errno, os, sys import Utils from BuildSys import LocalPlague def main(cfg,dists): if not dists: dists = cfg.alldists for dist in dists: if dist.startswith('testing/'): dist = dist.replace('testing/', '') if dist in dists: continue distdir = '%s-%s-%s' % (cfg.distro, dist, cfg.project) if hasattr(cfg.opts,'pushtotesting') and cfg.opts.pushtotesting: print distdir+'-testing:' else: print distdir+':' needsignroot = os.path.join(cfg.stagesdir, distdir) bs = LocalPlague(needsignroot, cfg.createrepo) results = bs.GetBuildResults() for br in results: print ' ', br print if __name__ == '__main__': if len(sys.argv) < 2: print 'Usage: %s [release]...\n' % os.path.basename(sys.argv[0]) sys.exit(errno.EINVAL) cfg = Utils.load_config_module(sys.argv[1]) main(cfg,sys.argv[2:]) sys.exit(0)