Check if p is int and remove whitespace.

This commit is contained in:
Tomáš Chvátal
2014-03-07 14:49:33 +01:00
parent 23a1cef719
commit 6eccef26c9
2 changed files with 3 additions and 2 deletions

View File

@@ -166,7 +166,7 @@ class RequestFinder:
for p in pkgs:
if self.find_request_package(p):
continue
if self.find_request_id(p):
if isinstance(p, int) and self.find_request_id(p):
continue
if self.find_request_project(p):
continue

View File

@@ -82,6 +82,7 @@ class SelectCommand(object):
:param move: wether to move the requests or not
:param from_: location where from move the requests
"""
# If the project is not frozen enough yet freeze it
if not self.api.prj_frozen_enough(target_project):
FreezeCommand(self.api).perform(target_project)
@@ -98,5 +99,5 @@ class SelectCommand(object):
staged_requests.append(request['id'])
if self.api.check_ring_packages(target_project, staged_requests):
self.api.build_switch_prj(self.target_project, 'enable')
return True