Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
jhbuild
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
9
Issues
9
List
Boards
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GNOME
jhbuild
Commits
06b0e5bc
Commit
06b0e5bc
authored
Dec 01, 2010
by
Craig Keogh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct min-age option and docs (GNOME bug 634866 and 634867)
Based upon patch by Adam Dingle
parent
f779ef71
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
16 deletions
+18
-16
README
README
+2
-2
doc/C/jhbuild.xml
doc/C/jhbuild.xml
+2
-2
jhbuild/config.py
jhbuild/config.py
+7
-5
jhbuild/defaults.jhbuildrc
jhbuild/defaults.jhbuildrc
+4
-4
jhbuild/frontends/buildscript.py
jhbuild/frontends/buildscript.py
+2
-2
tests/mock.py
tests/mock.py
+1
-1
No files found.
README
View file @
06b0e5bc
...
@@ -126,11 +126,11 @@ jhbuild build [--autogen] [--clean] [--dist] [--distcheck]
...
@@ -126,11 +126,11 @@ jhbuild build [--autogen] [--clean] [--dist] [--distcheck]
build the module. This option forces JHBuild to build optional
build the module. This option forces JHBuild to build optional
dependencies.
dependencies.
--min-
tim
e=time
--min-
ag
e=time
Skip modules installed more recently than the specified relative
Skip modules installed more recently than the specified relative
time. The time string format is a number followed by a unit. The
time. The time string format is a number followed by a unit. The
following units are supported: seconds (s), minutes (m), hours (h)
following units are supported: seconds (s), minutes (m), hours (h)
and days (d). For example, --min-
tim
e=2h will skip modules built
and days (d). For example, --min-
ag
e=2h will skip modules built
less than two hours ago.
less than two hours ago.
jhbuild buildone [--autogen] [--clean] [--distcheck] [--no-network]
jhbuild buildone [--autogen] [--clean] [--distcheck] [--no-network]
...
...
doc/C/jhbuild.xml
View file @
06b0e5bc
...
@@ -1035,14 +1035,14 @@ jhbuildbot_password = 'password'
...
@@ -1035,14 +1035,14 @@ jhbuildbot_password = 'password'
</varlistentry>
</varlistentry>
<varlistentry>
<varlistentry>
<term><option>
--min-
tim
e
</option>
=
<replaceable>
time
</replaceable></term>
<term><option>
--min-
ag
e
</option>
=
<replaceable>
time
</replaceable></term>
<listitem>
<listitem>
<simpara>
Skip modules installed more recently than the
<simpara>
Skip modules installed more recently than the
specified relative time. The
<replaceable>
time
</replaceable>
specified relative time. The
<replaceable>
time
</replaceable>
string format is a number followed by a unit. The
string format is a number followed by a unit. The
following units are supported: seconds (s), minutes (m),
following units are supported: seconds (s), minutes (m),
hours (h) and days (d). For example,
hours (h) and days (d). For example,
<option>
--min-
tim
e=2h
</option>
will skip modules built less
<option>
--min-
ag
e=2h
</option>
will skip modules built less
than two hours ago.
</simpara>
than two hours ago.
</simpara>
</listitem>
</listitem>
</varlistentry>
</varlistentry>
...
...
jhbuild/config.py
View file @
06b0e5bc
...
@@ -19,8 +19,10 @@
...
@@ -19,8 +19,10 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
import
os
import
os
import
re
import
sys
import
sys
import
traceback
import
traceback
import
time
import
types
import
types
import
logging
import
logging
import
__builtin__
import
__builtin__
...
@@ -47,7 +49,7 @@ _known_keys = [ 'moduleset', 'modules', 'skip', 'tags', 'prefix',
...
@@ -47,7 +49,7 @@ _known_keys = [ 'moduleset', 'modules', 'skip', 'tags', 'prefix',
'tarballdir'
,
'pretty_print'
,
'svn_program'
,
'makedist'
,
'tarballdir'
,
'pretty_print'
,
'svn_program'
,
'makedist'
,
'makedistcheck'
,
'nonotify'
,
'notrayicon'
,
'cvs_program'
,
'makedistcheck'
,
'nonotify'
,
'notrayicon'
,
'cvs_program'
,
'checkout_mode'
,
'copy_dir'
,
'module_checkout_mode'
,
'checkout_mode'
,
'copy_dir'
,
'module_checkout_mode'
,
'build_policy'
,
'trycheckout'
,
'min_
tim
e'
,
'build_policy'
,
'trycheckout'
,
'min_
ag
e'
,
'nopoison'
,
'module_nopoison'
,
'forcecheck'
,
'nopoison'
,
'module_nopoison'
,
'forcecheck'
,
'makecheck_advisory'
,
'quiet_mode'
,
'progress_bar'
,
'makecheck_advisory'
,
'quiet_mode'
,
'progress_bar'
,
'module_extra_env'
,
'jhbuildbot_master'
,
'jhbuildbot_slavename'
,
'module_extra_env'
,
'jhbuildbot_master'
,
'jhbuildbot_slavename'
,
...
@@ -135,7 +137,7 @@ def parse_relative_time(s):
...
@@ -135,7 +137,7 @@ def parse_relative_time(s):
coeffs
=
{
's'
:
1
,
'm'
:
60
,
'h'
:
3600
,
'd'
:
86400
,
'w'
:
7
*
86400
}
coeffs
=
{
's'
:
1
,
'm'
:
60
,
'h'
:
3600
,
'd'
:
86400
,
'w'
:
7
*
86400
}
return
float
(
m
.
group
(
1
))
*
coeffs
[
m
.
group
(
2
)]
return
float
(
m
.
group
(
1
))
*
coeffs
[
m
.
group
(
2
)]
else
:
else
:
raise
ValueError
(
_
(
'unable to parse
\'
%
s
\'
as relative time.'
)
%
s
)
raise
ValueError
class
Config
:
class
Config
:
...
@@ -542,10 +544,10 @@ class Config:
...
@@ -542,10 +544,10 @@ class Config:
self
.
build_policy
=
'all'
self
.
build_policy
=
'all'
if
hasattr
(
options
,
'min_age'
)
and
options
.
min_age
:
if
hasattr
(
options
,
'min_age'
)
and
options
.
min_age
:
try
:
try
:
self
.
min_
tim
e
=
time
.
time
()
-
parse_relative_time
(
options
.
min_age
)
self
.
min_
ag
e
=
time
.
time
()
-
parse_relative_time
(
options
.
min_age
)
except
ValueError
:
except
ValueError
:
raise
FatalError
(
_
(
'Failed to parse
relative time'
))
raise
FatalError
(
_
(
'Failed to parse
\'
min_age
\'
relative '
'time'
))
def
__setattr__
(
self
,
k
,
v
):
def
__setattr__
(
self
,
k
,
v
):
'''Override __setattr__ for additional checks on some options.'''
'''Override __setattr__ for additional checks on some options.'''
...
...
jhbuild/defaults.jhbuildrc
View file @
06b0e5bc
...
@@ -21,10 +21,10 @@ modules = [ 'meta-gnome-core' ]
...
@@ -21,10 +21,10 @@ modules = [ 'meta-gnome-core' ]
# have changed.
# have changed.
build_policy
=
'updated-deps'
build_policy
=
'updated-deps'
#
skip modules installed before $min_time (in seconds since epoch)
#
Skip modules installed more recently than the specified relative time.
#
for example: min_time = time.time() - 3600 will skip modules that
#
min_age can only be specified via the command-line. Setting min_age within
#
have been installed less than one hour ago
.
#
the configuration file has no effect
.
min_
tim
e
=
None
min_
ag
e
=
None
# modules to skip during dependency expansion
# modules to skip during dependency expansion
skip
=
[]
skip
=
[]
...
...
jhbuild/frontends/buildscript.py
View file @
06b0e5bc
...
@@ -81,9 +81,9 @@ class BuildScript:
...
@@ -81,9 +81,9 @@ class BuildScript:
for
module
in
self
.
modulelist
:
for
module
in
self
.
modulelist
:
self
.
module_num
=
self
.
module_num
+
1
self
.
module_num
=
self
.
module_num
+
1
if
self
.
config
.
min_
tim
e
is
not
None
:
if
self
.
config
.
min_
ag
e
is
not
None
:
installdate
=
self
.
packagedb
.
installdate
(
module
.
name
)
installdate
=
self
.
packagedb
.
installdate
(
module
.
name
)
if
installdate
>
self
.
config
.
min_
tim
e
:
if
installdate
>
self
.
config
.
min_
ag
e
:
self
.
message
(
_
(
'Skipping
%
s (installed recently)'
)
%
module
.
name
)
self
.
message
(
_
(
'Skipping
%
s (installed recently)'
)
%
module
.
name
)
continue
continue
...
...
tests/mock.py
View file @
06b0e5bc
...
@@ -52,7 +52,7 @@ class Config(jhbuild.config.Config):
...
@@ -52,7 +52,7 @@ class Config(jhbuild.config.Config):
module_makeargs
=
{}
module_makeargs
=
{}
build_targets
=
[
'install'
]
build_targets
=
[
'install'
]
min_
tim
e
=
None
min_
ag
e
=
None
prefix
=
'/tmp/'
prefix
=
'/tmp/'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment