[Git][NTPsec/ntpsec][buildtest] Revert "Attempted fix for path issue"

Ian Bruene gitlab at mg.gitlab.com
Wed Nov 29 18:55:01 UTC 2017


Ian Bruene pushed to branch buildtest at NTPsec / ntpsec


Commits:
786f278f by Ian Bruene at 2017-11-29T12:53:50-06:00
Revert "Attempted fix for path issue"

This reverts commit 8044e47bb672d8f42649b3b11b88c41b76e13ab5.

- - - - -


1 changed file:

- wscript


Changes:

=====================================
wscript
=====================================
--- a/wscript
+++ b/wscript
@@ -1025,6 +1025,19 @@ def afterparty(ctx):
     if ctx.cmd in ('uninstall', 'install'):
         # Make sure libs are removed from the old location
         FixConfig.cleanup_python_libs(ctx, ctx.cmd)
+    for x in ("ntpclients", "tests/pylib",):
+        # List used to be longer...
+        path_build = ctx.bldnode.make_node("pylib")
+        path_source = ctx.bldnode.make_node(x + "/ntp")
+        relpath = ("../" * (x.count("/")+1)) + path_build.path_from(ctx.bldnode)
+        if ctx.cmd in ('install', 'build'):
+            if ((not path_source.exists() or
+                    os.readlink(path_source.abspath()) != relpath)):
+                try:
+                    os.remove(path_source.abspath())
+                except OSError:
+                    pass
+                os.symlink(relpath, path_source.abspath())
 
 
 python_scripts = [
@@ -1102,22 +1115,6 @@ def build(ctx):
     ctx.manpage(8, "ntpclients/ntpleapfetch-man.txt")
     ctx.manpage(8, "ntpclients/ntpwait-man.txt")
 
-    # formerly part of afterparty(), these need to be in place for tests
-    for x in ("ntpclients", "tests/pylib",):
-        # List used to be longer...
-        path_build = ctx.bldnode.make_node("pylib")
-        path_source = ctx.bldnode.make_node(x + "/ntp")
-        relpath = ("../" * (x.count("/")+1)) + path_build.path_from(ctx.bldnode)
-        if ctx.cmd in ('install', 'build'):
-            if ((not path_source.exists() or
-                    os.readlink(path_source.abspath()) != relpath)):
-                try:
-                    os.remove(path_source.abspath())
-                except OSError:
-                    pass
-                os.symlink(relpath, path_source.abspath())
-
-
     # Skip running unit tests on a cross compile build
     if not ctx.env.ENABLE_CROSS:
         # Force re-running of tests.  Same as 'waf --alltests'



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/786f278f5a42b5b42df5d70b6e2551413d13f521

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/786f278f5a42b5b42df5d70b6e2551413d13f521
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20171129/847d87db/attachment.html>


More information about the vc mailing list