Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
installsystems
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Seblu
installsystems
Commits
18a74955
Commit
18a74955
authored
12 years ago
by
Sébastien Luttringer
Browse files
Options
Downloads
Patches
Plain Diff
build display a cummulated build time
if there is more than one image, build display a global build time
parent
37b85f23
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/is
+4
-0
4 additions, 0 deletions
bin/is
with
4 additions
and
0 deletions
bin/is
+
4
−
0
View file @
18a74955
...
...
@@ -118,6 +118,7 @@ def c_build(args):
'''
Build a source image in the current directory
'''
gdt
=
0
for
path
in
args
.
paths
:
arrow
(
"
Build %s
"
%
path
)
# chdir inside path if --chdir
...
...
@@ -131,10 +132,13 @@ def c_build(args):
# do the job
dt
=
simg
.
build
(
force
=
args
.
force
,
force_payload
=
args
.
payload
,
check
=
not
args
.
no_check
,
script
=
not
args
.
no_script
)
gdt
+=
dt
arrow
(
u
"
Build time: %s
"
%
datetime
.
timedelta
(
seconds
=
dt
))
if
args
.
chdir
:
os
.
chdir
(
cwd
)
arrowlevel
(
-
1
)
if
len
(
args
.
paths
)
>
1
:
arrow
(
u
"
Global build time: %s
"
%
datetime
.
timedelta
(
seconds
=
gdt
))
def
c_cat
(
args
):
'''
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment