[Python-modules-commits] r11408 - in packages/objgraph/trunk/debian/patches (2 files)
stefanor-guest at users.alioth.debian.org
stefanor-guest at users.alioth.debian.org
Fri Jan 29 17:43:50 UTC 2010
Date: Friday, January 29, 2010 @ 17:43:49
Author: stefanor-guest
Revision: 11408
Patch to never call xdot (it isn't packaged)
Added:
packages/objgraph/trunk/debian/patches/dont-call-xdot.patch
Modified:
packages/objgraph/trunk/debian/patches/series
Added: packages/objgraph/trunk/debian/patches/dont-call-xdot.patch
===================================================================
--- packages/objgraph/trunk/debian/patches/dont-call-xdot.patch (rev 0)
+++ packages/objgraph/trunk/debian/patches/dont-call-xdot.patch 2010-01-29 17:43:49 UTC (rev 11408)
@@ -0,0 +1,33 @@
+Description: xdot isn't packaged for Debian, so don't try to call it.
+Author: Stefano Rivera <stefano at rivera.za.net>
+Forwarded: not-needed
+Last-Update: 2010-01-29
+
+--- a/objgraph.py
++++ b/objgraph.py
+@@ -35,7 +35,7 @@
+
+ Object boxes are less crammed with useless information (such as IDs).
+
+-Spawns xdot if it is available.
++Spawns xdot if it is available [Disabled on Debian].
+ """
+ # Permission is hereby granted, free of charge, to any person obtaining a
+ # copy of this software and associated documentation files (the "Software"),
+@@ -207,6 +207,7 @@
+
+ Produces a Graphviz .dot file and spawns a viewer (xdot) if one is
+ installed, otherwise converts the graph to a .png image.
++ The xdot functionality is disabled on Debian.
+
+ Use ``max_depth`` and ``too_many`` to limit the depth and breadth of the
+ graph.
+@@ -333,7 +334,7 @@
+ print >> f, "}"
+ f.close()
+ print "Graph written to objects.dot (%d nodes)" % nodes
+- if os.system('which xdot >/dev/null') == 0:
++ if False: # Disabled on Debian: os.system('which xdot >/dev/null') == 0:
+ print "Spawning graph viewer (xdot)"
+ os.system("xdot objects.dot &")
+ else:
Modified: packages/objgraph/trunk/debian/patches/series
===================================================================
--- packages/objgraph/trunk/debian/patches/series 2010-01-29 15:59:05 UTC (rev 11407)
+++ packages/objgraph/trunk/debian/patches/series 2010-01-29 17:43:49 UTC (rev 11408)
@@ -1 +1,2 @@
+dont-call-xdot.patch
excise-setuptools.diff
More information about the Python-modules-commits
mailing list