[packages/rpm-build-tools] Fix option in comment. Don't use stderr.
arekm
arekm at pld-linux.org
Mon Dec 23 08:58:44 CET 2019
commit 178671a149ba6373c38938215d0410ee83581b79
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Mon Dec 23 08:58:35 2019 +0100
Fix option in comment. Don't use stderr.
check-shebang.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/check-shebang.py b/check-shebang.py
index fe04522..4408e3f 100755
--- a/check-shebang.py
+++ b/check-shebang.py
@@ -1,6 +1,6 @@
#!/usr/bin/python3
-# thisscript.py --root=~/tmp/somepackage ~/rpm/BUILD/somepackage/
+# thisscript.py --buildroot=~/tmp/somepackage ~/rpm/BUILD/somepackage/
import argparse
import io
@@ -66,7 +66,7 @@ def gf(files):
print("\t%s \\\n" % os.path.relpath(newfiles[i], start=args.sourcedir), end='')
print("\t%s\n" % os.path.relpath(newfiles[len(newfiles) - 1], start=args.sourcedir))
-print("\n# Copy from here:", file=sys.stderr)
+print("\n# Copy from here:")
print("# %s " % sys.argv[0], end='')
if args.buildroot:
print("--root=%s " % args.buildroot, end='')
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/178671a149ba6373c38938215d0410ee83581b79
More information about the pld-cvs-commit
mailing list