Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bob clobbers itself when it is using itself to build an upgraded debian file. #18

Open
mahmoudimus opened this issue Dec 25, 2014 · 0 comments
Labels

Comments

@mahmoudimus
Copy link
Contributor

When bob is used to build bob, there is no going back if it fails to build. This is due to https://github.com/balanced/bob/blob/master/bob/builders/ubuntu/__init__.py#L81-L85

        for directory in (self.tmp_dir, self.target):
            self.run_command('sudo rm -rf {}'.format(directory))
            self.run_command('sudo mkdir -p {}'.format(directory))
            self.run_command('sudo chown {} {}'.format(
                getpass.getuser(), directory)
            )

Bob will blow away /opt/bob when it's trying to build the debian file.

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

No branches or pull requests

1 participant