Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

strip_leading_dir is not always reliable with tar archives #36

Open
zimbatm opened this issue Mar 6, 2013 · 0 comments
Open

strip_leading_dir is not always reliable with tar archives #36

zimbatm opened this issue Mar 6, 2013 · 0 comments

Comments

@zimbatm
Copy link

zimbatm commented Mar 6, 2013

I don't know why yet exactly why but the prefix folder in the following archive is not stripped correctly.

If I run the tar xzvf --strip-components=0 or --strip-components=1 I still get the "moodle" sub-folder. --strip-components=2 does strip it though.

If I try to run tar -tzvf you can see that all files are prefixed with "./" which might be the reasons of the difference.

ark "moodle" do
  url "http://downloads.sourceforge.net/project/moodle/Moodle/stable24/moodle-latest-24.tgz?r=&ts=1362482456&use_mirror=heanet"
  version '2.4.1'
  action :install
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant