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 507930 - support for overriding policy
support for overriding policy
Status: RESOLVED FIXED
Product: jhbuild
Classification: Infrastructure
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Jhbuild maintainers
Jhbuild QA
Depends on:
Blocks:
 
 
Reported: 2008-01-07 21:25 UTC by Colin Walters
Modified: 2008-01-11 21:23 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch to add force option (2.96 KB, patch)
2008-01-07 21:26 UTC, Colin Walters
accepted-commit_now Details | Review

Description Colin Walters 2008-01-07 21:25:00 UTC
I have 'updated' as my build policy (the only sane policy ;)).  Now, when I'm hacking on a module I want to run "jhbuild buildone modname", but it doesn't build anything because it wasn't updated.  There didn't appear to be any way to make this go without temporarily hacking my config (ick).

Attached is a patch which adds a -f option to force a build, for both the "build" and "buildone" options.
Comment 1 Colin Walters 2008-01-07 21:26:20 UTC
Created attachment 102345 [details] [review]
patch to add force option
Comment 2 Frederic Peters 2008-01-10 12:00:38 UTC
Perfect, please commit.
Comment 3 Colin Walters 2008-01-11 21:09:29 UTC
Chasing a regression here:

Traceback (most recent call last):
...
  • File "/src/jhbuild/jhbuild/trunk/jhbuild/modtypes/__init__.py", line 110 in check_build_policy
    if buildscript.config.force_policy:
AttributeError: Config instance has no attribute 'force_policy'

I'll debug then commit.
Comment 4 Frederic Peters 2008-01-11 21:18:45 UTC
You need to declare the configuration variable in jhbuild/config.py (_known_keys) (and I should read patch more carefully).
Comment 5 Colin Walters 2008-01-11 21:23:38 UTC
Fixed and committed, thanks!