File tree Expand file tree Collapse file tree 2 files changed +0
-6
lines changed Expand file tree Collapse file tree 2 files changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -381,11 +381,9 @@ def rpaths
381
381
# rpaths simultaneously.
382
382
# @return [void]
383
383
# @raise [RpathUnknownError] if no such old runtime path exists
384
- # @raise [RpathExistsError] if the new runtime path already exists
385
384
def change_rpath ( old_path , new_path , options = { } )
386
385
old_lc = command ( :LC_RPATH ) . find { |r | r . path . to_s == old_path }
387
386
raise RpathUnknownError , old_path if old_lc . nil?
388
- raise RpathExistsError , new_path if rpaths . include? ( new_path )
389
387
390
388
new_lc = LoadCommands ::LoadCommand . create ( :LC_RPATH , new_path )
391
389
Original file line number Diff line number Diff line change @@ -574,10 +574,6 @@ def test_rpath_exceptions
574
574
file . change_rpath ( "/this/rpath/doesn't/exist" , "/lib" )
575
575
end
576
576
577
- assert_raises MachO ::RpathExistsError do
578
- file . change_rpath ( file . rpaths . first , file . rpaths . first )
579
- end
580
-
581
577
assert_raises MachO ::RpathExistsError do
582
578
file . add_rpath ( file . rpaths . first )
583
579
end
You can’t perform that action at this time.
0 commit comments