[systemd-devel] [PATCH] systemd-analyze: switch to python getopt for argument parsing

shawn shawnlandden at gmail.com
Mon May 14 14:57:12 PDT 2012


On Mon, 2012-05-14 at 14:07 -0700, Patrick McCarty wrote: 
> On Thu, May 03, 2012 at 08:13:44PM -0700, Shawn Landden wrote:
> > -elif sys.argv[command_index] == 'plot':
> > +def plot():
> 
> Defining plot() here breaks `systemd-analyze plot`: the cairo module is
> no longer imported at top-level, which is required when using the cairo
> module in draw_text().
> 
> Otherwise the patch looks OK to me.

I tested my patch, but i don't have cairo on that machine, so didn't get
that far. Thanks for noticing. Try my new patch.


-- 
-Shawn Landden



More information about the systemd-devel mailing list