forked from Mirror/pmbootstrap
pmbootstrap log: Add a -n/--lines parameter (like tail has)
...also increase the default line count to 30, so it's easier to spot an error if you didn't have the log open when it happened. This parameter also works for 'pmbootstrap log_distccd', for consistency.
This commit is contained in:
parent
9515782f8d
commit
50195a6af2
2 changed files with 10 additions and 5 deletions
|
@ -78,10 +78,11 @@ def main():
|
|||
elif args.action == "stats":
|
||||
pmb.build.ccache_stats(args, args.arch)
|
||||
elif args.action == "log":
|
||||
pmb.helpers.run.user(args, ["tail", "-f", args.log], log=False)
|
||||
pmb.helpers.run.user(args, ["tail", "-f", args.log,
|
||||
"-n", args.lines], log=False)
|
||||
elif args.action == "log_distccd":
|
||||
pmb.chroot.user(args, ["tail", "-f", "/home/user/distccd.log"],
|
||||
log=False)
|
||||
pmb.chroot.user(args, ["tail", "-f", "/home/user/distccd.log",
|
||||
"-n", args.lines], log=False)
|
||||
elif args.action == "zap":
|
||||
pmb.chroot.zap(args)
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue