Skip to content

Commit

Permalink
Add -p1 option to patch command
Browse files Browse the repository at this point in the history
  • Loading branch information
kaoskorobase committed Dec 19, 2012
1 parent 1430277 commit 015561a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion add-package
Expand Up @@ -13,7 +13,7 @@ cabal_dev_args = ARGV

if File.exist?(patch)
dir = File.expand_path(`cabal unpack #{package}`.split(' ').last)
Dir.chdir(dir) { system("patch < \"#{patch}\"") }
Dir.chdir(dir) { system("patch -p1 < \"#{patch}\"") }
system("cabal-dev", "add-source", dir, *cabal_dev_args)
FileUtils.rm_r(dir)
else
Expand Down

0 comments on commit 015561a

Please sign in to comment.