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
|
end
|
||||||
|
|
||||||
def package(vcs, rev, destdir, tmp = nil)
|
def package(vcs, rev, destdir, tmp = nil)
|
||||||
|
pwd = Dir.pwd
|
||||||
patchlevel = false
|
patchlevel = false
|
||||||
prerelease = false
|
prerelease = false
|
||||||
if rev and revision = rev[/@(\h+)\z/, 1]
|
if rev and revision = rev[/@(\h+)\z/, 1]
|
||||||
|
@ -507,6 +508,7 @@ after-update::
|
||||||
end.compact
|
end.compact
|
||||||
ensure
|
ensure
|
||||||
FileUtils.rm_rf(v) if v and !$exported and !$keep_temp
|
FileUtils.rm_rf(v) if v and !$exported and !$keep_temp
|
||||||
|
Dir.chdir(pwd)
|
||||||
end
|
end
|
||||||
|
|
||||||
if [$srcdir, ($svn||=nil), ($git||=nil)].compact.size > 1
|
if [$srcdir, ($svn||=nil), ($git||=nil)].compact.size > 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue