commit
9ce68083db
@ -22,7 +22,6 @@
|
||||
import httplib
|
||||
import re
|
||||
from urlparse import urlparse
|
||||
from pprint import pprint
|
||||
import smtplib
|
||||
from email.mime.text import MIMEText
|
||||
import os
|
||||
|
@ -78,8 +78,10 @@ def tt_overall_result(self, snapshot):
|
||||
'opensuse-FTT-DVD-x86_64-Build-lxde@64bit',
|
||||
'opensuse-FTT-DVD-x86_64-Build-update_123@64bit',
|
||||
'opensuse-FTT-GNOME-Live-i686-Build-gnome-live@32bit', # broken in 20140813
|
||||
'opensuse-FTT-GNOME-Live-x86_64-Build-gnome-live@64bit', # broken in 20140814
|
||||
'opensuse-FTT-GNOME-Live-x86_64-Build-gnome-live@USBboot_64',
|
||||
'opensuse-FTT-KDE-Live-i686-Build-kde-live@32bit', # broken in 20140813
|
||||
'opensuse-FTT-KDE-Live-x86_64-Build-kde-live@64bit', # broken in 20140814
|
||||
'opensuse-FTT-KDE-Live-x86_64-Build-kde-live@USBboot_64',
|
||||
'opensuse-FTT-NET-i586-Build-lvm@32bit',
|
||||
'opensuse-FTT-NET-i586-Build-lxde@32bit',
|
||||
@ -92,6 +94,7 @@ def tt_overall_result(self, snapshot):
|
||||
'opensuse-FTT-DVD-i586-Build-kde@USBboot_32',
|
||||
'opensuse-FTT-DVD-x86_64-Build-kde@USBboot_64',
|
||||
'opensuse-FTT-NET-i586-Build-kde@USBboot_32',
|
||||
'opensuse-FTT-NET-x86_64-Build-kde@USBboot_64',
|
||||
]
|
||||
|
||||
if len(jobs) < 80: # not yet scheduled
|
||||
|
@ -19,10 +19,17 @@ class AcceptCommand(object):
|
||||
f = http_GET(url)
|
||||
root = ET.parse(f).getroot()
|
||||
|
||||
ids = []
|
||||
rqs = []
|
||||
for rq in root.findall('request'):
|
||||
ids.append(int(rq.get('id')))
|
||||
return ids
|
||||
pkgs = []
|
||||
actions = rq.findall('action')
|
||||
for action in actions:
|
||||
targets = action.findall('target')
|
||||
for t in targets:
|
||||
pkgs.append(str(t.get('package')))
|
||||
|
||||
rqs.append({ 'id': int(rq.get('id')), 'packages': pkgs })
|
||||
return rqs
|
||||
|
||||
def perform(self, project):
|
||||
"""
|
||||
@ -68,8 +75,8 @@ class AcceptCommand(object):
|
||||
def accept_other_new(self):
|
||||
changed = False
|
||||
for req in self.find_new_requests('openSUSE:{}'.format(self.api.opensuse)):
|
||||
print "accepting request %s"%str(req)
|
||||
change_request_state(self.api.apiurl, str(req), 'accepted', message='Accept to factory')
|
||||
print "accepting request %d: %s"%(req['id'], ','.join(req['packages']))
|
||||
change_request_state(self.api.apiurl, str(req['id']), 'accepted', message='Accept to factory')
|
||||
changed = True
|
||||
|
||||
return changed
|
||||
|
Loading…
x
Reference in New Issue
Block a user