Skip to content
This repository has been archived by the owner on Jun 24, 2020. It is now read-only.

Potential bug in the sbuild runner #45

Open
mdimjasevic opened this issue May 19, 2016 · 3 comments
Open

Potential bug in the sbuild runner #45

mdimjasevic opened this issue May 19, 2016 · 3 comments

Comments

@mdimjasevic
Copy link
Contributor

There is something that seems like a bug to me and it is in https://github.com/opencollab/debile/blob/master/debile/slave/runners/sbuild.py#L85 :

def ensure_chroot_sanity(chroot_name):
    out, _, _ = run_command(['schroot', '-l'])
    for chroot in out.splitlines():
        chroot = chroot.strip()
        chroots = [
            chroot,
            "chroot:%s" % (chroot)
        ]
        if chroot in chroots:
            return True
    raise ValueError("No such schroot (%s) found." % (chroot_name))

Shouldn't the if-statement read:

        if chroot_name in chroots:

instead?

@mdimjasevic mdimjasevic changed the title Potential bug in sbuild runner Potential bug in the sbuild runner May 19, 2016
@clemux
Copy link
Contributor

clemux commented May 30, 2016

I'd say it's very possible it's a bug :)

@mdimjasevic
Copy link
Contributor Author

I can fix it and add a test case.

On May 29, 2016 11:46:31 PM MDT, "Clément Schreiner" [email protected] wrote:

I'd say it's very possible it's a bug :)


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#45 (comment)

Sent from my Android device with K-9 Mail. Please excuse my brevity.

@clemux
Copy link
Contributor

clemux commented May 30, 2016

That'd be perfect!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants