Skip to content

Commit

Permalink
Add --no-timestamps parameter to build
Browse files Browse the repository at this point in the history
Add --no-timestamps parameter which already exists in build.
Help text copied from build.
Include parameters for the same parameter in buildlog for easier
use.
  • Loading branch information
Thaodan committed Oct 8, 2024
1 parent 1fc5813 commit 66b93be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions osc/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -880,6 +880,8 @@ def main(apiurl, store, opts, argv):
pac = pac + ":" + opts.multibuild_package
if opts.verbose_mode:
buildargs.append('--verbose=%s' % opts.verbose_mode)
if opts.no_timestamps:
buildargs.append('--no-timestamps')

Check warning on line 884 in osc/build.py

View check run for this annotation

Codecov / codecov/patch

osc/build.py#L883-L884

Added lines #L883 - L884 were not covered by tests
if opts.wipe:
buildargs.append("--wipe")

Expand Down
2 changes: 2 additions & 0 deletions osc/commandline.py
Original file line number Diff line number Diff line change
Expand Up @@ -7313,6 +7313,8 @@ def parse_repoarchdescr(self, args, noinit=False, alternative_project=None, igno
help='Do not use preinstall images for creating the build root.')
@cmdln.option("--just-print-buildroot", action="store_true",
help="Print build root path and exit.")
@cmdln.option('--no-timestamps', '-s', '--strip-time',action='store_true',
help='Hide the time prefix in output.')
@cmdln.alias('chroot')
@cmdln.alias('shell')
@cmdln.alias('wipe')
Expand Down

0 comments on commit 66b93be

Please sign in to comment.