Add inspect methods to patch classes
This commit is contained in:
parent
a5a78ce3c6
commit
c91c2c10d8
@ -78,6 +78,10 @@ class IOPatch < Patch
|
|||||||
# in case we are indirectly referenced by an exception later.
|
# in case we are indirectly referenced by an exception later.
|
||||||
@io = nil
|
@io = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def inspect
|
||||||
|
"#<#{self.class}: #{strip.inspect}>"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class ExternalPatch < Patch
|
class ExternalPatch < Patch
|
||||||
@ -108,6 +112,10 @@ class ExternalPatch < Patch
|
|||||||
safe_system "/usr/bin/patch", "-g", "0", "-f", "-d", dir, "-#{strip}", "-i", patchfile
|
safe_system "/usr/bin/patch", "-g", "0", "-f", "-d", dir, "-#{strip}", "-i", patchfile
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def inspect
|
||||||
|
"#<#{self.class}: #{strip.inspect} #{url.inspect}>"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Legacy patches have no checksum and are not cached
|
# Legacy patches have no checksum and are not cached
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user