You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to patch an infinite loop in rosgraph and could fix it in the package itself, but not its dependent packages.That is, if I have a script using rosgraph, it uses the patched one, however if I use ros-core, it uses the unpatched version.
Is there a way to apply the patch and make it affect every dependents?
I am not very fluet in nix, sorry if this is a known pattern.
diff --git a/ros_comm-release-release-noetic-rosgraph-1.16.0-1/src/rosgraph/roslogging.py b/ros_comm-release-release-noetic-rosgraph-1.16.0-1-patched/src/rosgraph/roslogging.py
index 9ecc121..5adc95f 100644
--- a/src/rosgraph/roslogging.py
+++ b/src/rosgraph/roslogging.py
@@ -69,6 +69,8 @@ class RospyLogger(logging.getLoggerClass()):
break
if f.f_back:
f = f.f_back
+ else: # Reached the last stack frame and found no matching one.
+ raise ValueError("Could not find function [%s] on the framestack"%func_name)
# Jump up two more frames, as the logger methods have been double wrapped.
if f is not None and f.f_back and f.f_code and f.f_code.co_name == '_base_logger':
The text was updated successfully, but these errors were encountered:
Hi, Thanks for all your work!
I was trying to patch an infinite loop in rosgraph and could fix it in the package itself, but not its dependent packages.That is, if I have a script using rosgraph, it uses the patched one, however if I use ros-core, it uses the unpatched version.
Is there a way to apply the patch and make it affect every dependents?
I am not very fluet in nix, sorry if this is a known pattern.
My flake.nix:
The patch, if needed
The text was updated successfully, but these errors were encountered: