Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
If "source: .." do not copy the current directory into itself. #645
Conversation
snappy-m-o
commented
Jul 9, 2016
|
Can one of the admins verify this patch? |
snappy-m-o
commented
Jul 9, 2016
|
Can one of the admins verify this patch? |
|
ok to test |
|
Hmm, this looks weird, @elopio ideas?
|
|
The cwd for the test is /tmp/{randomdir}. When you tell it that the source is .., it will try to copy all /tmp into /tmp/{randomdir}/src/snapcraft. Some files in tmp are protected, thus the error. I suggest to os.chdir('src/snapcraft') before calling pull. And I think this is missing an integration test. Please take a look at the integration_tests dir, and let me know if you need a hand with this. Thanks for the code Evan! |
Ah, I was going to say just that. Thanks Evan, looks great other than that! |
|
On it |
|
@evandandrea do you think you can get that integration test in? Or would you like one of us to take over? |
|
Closed in favor of #725 due to inactivity. |
evandandrea commentedJul 9, 2016
This fixes LP: #1600428 by skipping over the directory containing the snapcraft.yaml when
source: ..