GNOME Bugzilla – Bug 795431
JHBuild crashes when builddir is removed in the shell
Last modified: 2018-04-21 14:20:40 UTC
This problem was introduced in commit 3f5e90d - Create a symlink to the srcdir from the builddir. When the user deletes builddir in the shell started by JHBuild, it crashes when the user exits the shell. *** Error during phase checkout of jhbuild: ########## Error running git remote update origin *** [1/1] [1] Rerun phase checkout [2] Ignore error and continue to configure [3] Give up on module [4] Start shell [5] Reload configuration [6] Go to phase "wipe directory and start over" choice: 4 $ rm -rf ~/gnome/build/jhbuild/ $ exit Traceback (most recent call last):
+ Trace 238575
jhbuild.main.main(sys.argv[1:])
rc = jhbuild.commands.run(command, config, args, help=lambda: print_help(parser))
return cmd.execute(config, args, help)
return self.run(config, options, args, help)
return build.build()
altphases)
os.unlink('.jhbuild-srcdir')
Created attachment 371209 [details] [review] Don't crash when the user removes builddir in the shell It is sometimes necessary to remove the entire builddir in order to fix the build. When the user does this, JHBuild will fail to remove the symlink it created and the unlink call will fail and throw an exception.
Review of attachment 371209 [details] [review]: Sure.
Attachment 371209 [details] pushed as 154ce02 - Don't crash when the user removes builddir in the shell