mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Restore pwd for each version
This commit is contained in:
parent
fd4aad6d41
commit
bd785ca077
1 changed files with 2 additions and 0 deletions
|
@ -199,6 +199,7 @@ rescue => e
|
|||
end
|
||||
|
||||
def package(vcs, rev, destdir, tmp = nil)
|
||||
pwd = Dir.pwd
|
||||
patchlevel = false
|
||||
prerelease = false
|
||||
if rev and revision = rev[/@(\h+)\z/, 1]
|
||||
|
@ -507,6 +508,7 @@ after-update::
|
|||
end.compact
|
||||
ensure
|
||||
FileUtils.rm_rf(v) if v and !$exported and !$keep_temp
|
||||
Dir.chdir(pwd)
|
||||
end
|
||||
|
||||
if [$srcdir, ($svn||=nil), ($git||=nil)].compact.size > 1
|
||||
|
|
Loading…
Add table
Reference in a new issue