Fix class references

This commit is contained in:
Pass Automated Testing Suite 2015-01-20 13:06:48 +01:00
parent 35ec3f368b
commit cf208b4a4a

View File

@ -920,7 +920,7 @@ class StagingAPI(object):
version = None version = None
specfile = self.api.load_file_content(project, package, '{}.spec'.format(package)) specfile = self.load_file_content(project, package, '{}.spec'.format(package))
if specfile: if specfile:
try: try:
version = re.findall("^Version:(.*)",specfile,re.MULTILINE)[0].strip() version = re.findall("^Version:(.*)",specfile,re.MULTILINE)[0].strip()
@ -935,7 +935,7 @@ class StagingAPI(object):
:param package: The package to quert :param package: The package to quert
:param filename: The filename to query :param filename: The filename to query
""" """
url = self.api.makeurl(['source', project, package, '{}?expand=1'.format(filename)]) url = self.makeurl(['source', project, package, '{}?expand=1'.format(filename)])
try: try:
return http_GET(url).read() return http_GET(url).read()
except: except:
@ -949,7 +949,7 @@ class StagingAPI(object):
:param filename: the filename to save the data to :param filename: the filename to save the data to
:param content: the content to write to the file :param content: the content to write to the file
""" """
url = self.api.makeurl(['source', project, package, filename]) url = self.makeurl(['source', project, package, filename])
http_PUT(url + '?comment=scripted+update', data=content) http_PUT(url + '?comment=scripted+update', data=content)
def update_status_comments(self, project, command): def update_status_comments(self, project, command):