Skip to content

Commit 2a50310

Browse files
committed
Merge pull request #19 from MeeGoIntegration/build-trial-paths-hack
Avoid invalid paths in trial project meta Signed-off-by: David Greaves <[email protected]>
2 parents dceb03a + 4307fbb commit 2a50310

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

participants/setup_build_trial.py

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -296,30 +296,21 @@ def remove_invalid_paths(self, trial_project, extra_paths, targets):
296296
targets.remove(project)
297297

298298
def construct_trial(self, trial_project, actions, extra_path=None, extra_links=None, exclude_repos=[], exclude_archs=[], exclude_links=None):
299-
print "construct_trial", trial_project, actions, extra_path, extra_links, exclude_repos, exclude_archs, exclude_links
300-
301299
mechanism = "localdep"
302300
targets = set([act['targetproject'] for act in actions])
303301
if not targets and extra_path:
304302
targets.add(extra_path)
305303
if exclude_links:
306304
targets = targets - exclude_links
307-
print "targets", targets
308305
repolinks, extra_paths, flags = self.calculate_trial(targets, exclude_repos, exclude_archs, extra_path=extra_path)
309-
print "repolinks", repolinks
310-
print "extra_paths", extra_paths
311-
print "flags", flags
312306

313307
targets.update(set(path[0] for path in itertools.chain.from_iterable(extra_paths.values())))
314308
targets.update(extra_links)
315309
if exclude_links:
316310
targets = targets - exclude_links
317-
318-
print "targets", targets
311+
319312
repolinks, extra_paths, flags = self.calculate_trial(targets, exclude_repos, exclude_archs, extra_path=extra_path)
320-
print "repolinks", repolinks
321-
print "extra_paths", extra_paths
322-
print "flags", flags
313+
self.remove_invalid_paths(trial_project, extra_paths, targets)
323314

324315
self.remove_invalid_paths(trial_project, extra_paths, targets)
325316
print "extra_paths cleaned", extra_paths
@@ -335,11 +326,7 @@ def construct_trial(self, trial_project, actions, extra_path=None, extra_links=N
335326
raise RuntimeError("Something went wrong while creating build trial project %s" % trial_project)
336327

337328
extra_paths = self.add_self_refs(trial_project, repolinks, extra_paths)
338-
print "self ref extra_paths", extra_paths
339-
print "flags", flags
340-
341329
self.remove_invalid_paths(trial_project, extra_paths, targets)
342-
print "self ref extra_paths cleaned", extra_paths
343330

344331
result = self.obs.createProject(trial_project, repolinks,
345332
links=targets,

0 commit comments

Comments
 (0)