From: Florian Forster Date: Fri, 18 May 2007 17:34:43 +0000 (+0200) Subject: contrib/{extractDS,migrate-3-4}.px: Don't use XML::Simple and don't check for the... X-Git-Tag: collectd-4.0.0~32 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=5cfc908c892b9703b3c34db20a861f5c7b64a7d7;p=collectd.git contrib/{extractDS,migrate-3-4}.px: Don't use XML::Simple and don't check for the output directory. --- diff --git a/contrib/extractDS.px b/contrib/extractDS.px index 3bf4b9e0..bdc4b3d2 100755 --- a/contrib/extractDS.px +++ b/contrib/extractDS.px @@ -19,7 +19,6 @@ the L module. =cut use Getopt::Long ('GetOptions'); -use XML::Simple (qw(xml_in xml_out)); use Data::Dumper (); our $InFile; diff --git a/contrib/migrate-3-4.px b/contrib/migrate-3-4.px index 24a3c4ed..613561b9 100755 --- a/contrib/migrate-3-4.px +++ b/contrib/migrate-3-4.px @@ -128,11 +128,6 @@ GetOptions ("indir|i=s" => \$InDir, "hostname=s" => \$Hostname) or exit (1); die "No such directory: $InDir" if (!-d $InDir); -if (!-e $OutDir) -{ - mkdir ($OutDir) or die ("mkdir ($OutDir): $!"); -} -die "Not a directory: $OutDir" if (!-d $OutDir); our @Files = (); our %OutDirs = ();