[Git][NTPsec/ntpsec][master] 3 commits: Fix typos and make sure defaults are set in pyntpq
Eric S. Raymond
gitlab at mg.gitlab.com
Thu Aug 11 17:52:27 UTC 2016
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
02c8201e by Matt Selsky at 2016-08-11T13:52:15-04:00
Fix typos and make sure defaults are set in pyntpq
Errors were:
$ ./ntpq/pyntpq -p
Traceback (most recent call last):
File "./ntpq/pyntpq", line 668, in <module>
interpreter.ccmd.append("peers")
AttributeError: ntpq_interpreter instance has no attribute 'ccmd'
$ ./ntpq/pyntpq -d
Traceback (most recent call last):
File "./ntpq/pyntpq", line 655, in <module>
interpreter.debug += 1
AttributeError: ntpq_interpreter instance has no attribute 'debug'
- - - - -
6b7beebd by Matt Selsky at 2016-08-11T13:52:15-04:00
Fix typo so that "debug less" works in pyntpq
- - - - -
4c0310de by Matt Selsky at 2016-08-11T13:52:15-04:00
Typo.
- - - - -
2 changed files:
- ntpq/pyntpq
- wscript
Changes:
=====================================
ntpq/pyntpq
=====================================
--- a/ntpq/pyntpq
+++ b/ntpq/pyntpq
@@ -197,6 +197,7 @@ class ntpq_interpreter(cmd.Cmd):
self.wideremote = False # show wide remote names?
self.ccmds = [] # Queued commands
self.chosts = [] # Command-line hosts
+ self.debug = 0
def do_EOF(self, _unused):
"exit ntpq"
sys.stdout.write("\n")
@@ -290,7 +291,7 @@ usage: hostnames [ yes|no ]
pass
elif line == "more":
self.debug +=1
- elif line == "yes":
+ elif line == "less":
self.debug -= 1
elif line == "no":
self.debug = 0
@@ -666,7 +667,7 @@ if __name__ == '__main__':
elif switch in ("-O", "--old-rv"):
interpreter.old_rv = True
elif switch in ("-p", "--peers"):
- interpreter.ccmd.append("peers")
+ interpreter.ccmds.append("peers")
elif switch in ("-V", "--version"):
print("ntpq %s\n" % version)
raise SystemExit(0)
=====================================
wscript
=====================================
--- a/wscript
+++ b/wscript
@@ -147,7 +147,7 @@ def build(ctx):
ctx.recurse("tests")
# These don't have installation productions yet.
- # Installarion for their required Perl and Python libraries
+ # Installation for their required Perl and Python libraries
# needs to be worked out first. Awkwardly, their man pages do
# get installed. There is a note about this mess in INSTALL.
scripts = [
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/compare/826a186713db539c62f4dd626d4b075cdcbdeec0...4c0310debeba66f4a8dce748bb07b2f87111db8c
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160811/f321ddad/attachment.html>
More information about the vc
mailing list