https://bugzilla.novell.com/show_bug.cgi?id=863418 https://bugzilla.novell.com/show_bug.cgi?id=863418#c0 Summary: osc results -w won't quit if publishing is disabled. Classification: Internal Novell Products Product: openSUSE Build Service Version: 2.4 Platform: x86-64 OS/Version: openSUSE 13.1 Status: NEW Severity: Normal Priority: P5 - None Component: osc AssignedTo: adrian@suse.com ReportedBy: joseph@mulloy.me QAContact: adrian@suse.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.107 Safari/537.36 I'm not sure if this is intended behavior or not, but when using the "osc results -w" command it won't actually quit until all packages have either failed or are published. If you have publishing disabled it will never return. This makes it impossible to use in a script to wait for a build to finish. Of course if you're script is waiting for the RPM to be published you would want it to behave as it does now. In my case, however I don't, I just want to wait until the builds are done. The best solution would be another option to specify whether you want to wait for build completion or publish completion. Reproducible: Always Steps to Reproduce: 1. Run "osc results -w" on a package where publishing is disabled on at least one OS/Architeture Actual Results: osc command never quits, even when all builds have finished Expected Results: osc quits once all the builds have completed This is the code causing the issue. If the packages are unpublished the waiting variable is set to true and the loop is never broken. /usr/lib/python2.7/site-packages/osc/core.py lines 5049-5054 elif res['code'] in ('succeeded') and res['repostate'] != "published": waiting = True if verbose: res['status'] += '(unpublished)' else: res['status'] += '*' -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.