FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora/Linux Management Tools

 
 
LinkBack Thread Tools
 
Old 07-10-2008, 01:48 PM
 
Default virt-convert: small cleanup fix

# HG changeset patch
# User john.levon@sun.com
# Date 1215697490 25200
# Node ID f5e35abf05eb1fa3b64af2cf2cdcfc26139025fd
# Parent af294fad5bde2b91640c55b8f279cbe8f9a41b37
virt-convert: small cleanup fix

Only add the directory if we really did create it.

Signed-off-by: John Levon <john.levon@sun.com>

diff --git a/virt-convert b/virt-convert
--- a/virt-convert
+++ b/virt-convert
@@ -176,8 +176,8 @@
options.output_dir = unixname
try:
logging.debug("Creating directory %s" % options.output_dir)
+ os.mkdir(options.output_dir)
clean += [ options.output_dir ]
- os.mkdir(options.output_dir)
except OSError, e:
if (e.errno != errno.EEXIST):
logging.error("Could not create directory %s: %s" %

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 

Thread Tools




All times are GMT. The time now is 08:07 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org