Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Add usr/bin to the shebang replace path #238
Conversation
|
|
|
Ah right, the downside to doing it this way: It also needs to be done to the roscore plugin or the file contents differ. |
|
I am thinking of rebasing with #236 |
|
Does #236 look good? Feel free to merge and go ahead and rebase. |
elopio
reviewed
Jan 16, 2016
| + stage: | ||
| + - -$dev | ||
| + snap: | ||
| + - -$dev |
elopio
reviewed
Jan 16, 2016
| @@ -178,6 +178,9 @@ class TestSnapcraftExamples(testscenarios.TestWithScenarios): | ||
| 'dir': 'ros', | ||
| 'name': 'ros-example', | ||
| 'version': '1.0', | ||
| + 'external_tests_commands': [ | ||
| + ("sed -n '/env/p;1q' snap/usr/bin/rosversion", | ||
| + b'#!/usr/bin/env python\n',)], |
elopio
Jan 16, 2016
Member
how clever this guy who invented the external test commands ;)
I would explain in a comment what that sed statement is doing there.
elopio
reviewed
Jan 16, 2016
| @@ -298,6 +308,14 @@ def _fix_filemode(path): | ||
| os.chmod(path, mode & 0o1777) | ||
| +def _fix_shebangs(path): |
elopio
Jan 16, 2016
Member
It wouldn't hurt to comment why the shebangs have to be fixed. Just like on fix_symlinks above.
|
+1 from me. I'm just missing a couple of comments. |
|
@elopio I fixed the code to take into account your comments |
|
@kyrofa done |
sergiusens commentedJan 15, 2016
LP: #1534812