[packages/rpm-build-tools] Show relpath, so should be easy to just copy & paste into %%build macro

arekm arekm at pld-linux.org
Mon Dec 23 00:22:52 CET 2019


commit fb9337930a80114dc1f22dc7143064591d882567
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon Dec 23 00:22:43 2019 +0100

    Show relpath, so should be easy to just copy & paste into %%build macro

 check-shebang.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/check-shebang.py b/check-shebang.py
index 75c37d7..fe04522 100755
--- a/check-shebang.py
+++ b/check-shebang.py
@@ -63,8 +63,8 @@ def gf(files):
             newfiles.append(f)
     newfiles.sort()
     for i in range(0, len(newfiles) - 1):
-        print("\t%s \\\n" % newfiles[i], end='')
-    print("\t%s\n" % newfiles[len(newfiles) - 1])
+        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("# %s " % sys.argv[0], end='')
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/fb9337930a80114dc1f22dc7143064591d882567



More information about the pld-cvs-commit mailing list