Check if p is int and remove whitespace.
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user