After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 698456 - jhbuild fails to create checkoutroot directory
jhbuild fails to create checkoutroot directory
Status: RESOLVED OBSOLETE
Product: jhbuild
Classification: Infrastructure
Component: general
unspecified
Other Linux
: Normal minor
: ---
Assigned To: Jhbuild maintainers
Jhbuild QA
Depends on:
Blocks:
 
 
Reported: 2013-04-20 16:27 UTC by Nikhil Siddhartha
Modified: 2021-05-17 15:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
My proposed patch (1.78 KB, patch)
2013-04-24 21:43 UTC, Nikhil Siddhartha
none Details | Review

Description Nikhil Siddhartha 2013-04-20 16:27:40 UTC
In the jhbuildrc file, even when the 'checkoutroot' directory's path is specified as one of the user's owned folders (a writable directory), it fails to create them. While, in case of the path of 'prefix' directory, it succeeds if the path is to a user owned directory, i.e. a writable directory.


Solution:
Have to manually create the 'checkoutroot' directory, in a directory, where the user is permitted to write.

OS: Ubuntu 12.04
Desktop Environment: Gnome 3.4.2.1
Comment 1 Nikhil Siddhartha 2013-04-24 21:43:14 UTC
Created attachment 242373 [details] [review]
My proposed patch

It makes sure that the checkoutroot directory is created if the location provided is writable.
(does the same for prefix root directory too)
Comment 2 Frederic Peters 2013-05-23 20:39:50 UTC
Quick review:
 - Your indentation is wrong (PEP 8 dictates 4 spaces);
 - You should try to catch specific exceptions;
 - This shouldn't happen in sanitycheck but in config.py, setup_env. (there is already a bunch of makedirs calls there).
Comment 3 GNOME Infrastructure Team 2021-05-17 15:57:02 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/jhbuild/-/issues/168.