[svn] r4723 - trunk/tools/yam
packagers at lists.rpmforge.net
packagers at lists.rpmforge.net
Mon Sep 18 13:40:30 CEST 2006
Author: dag
Date: 2006-09-18 13:40:30 +0200 (Mon, 18 Sep 2006)
New Revision: 4723
Modified:
trunk/tools/yam/yam
Log:
Small fixes
Modified: trunk/tools/yam/yam
===================================================================
--- trunk/tools/yam/yam 2006-09-18 09:35:39 UTC (rev 4722)
+++ trunk/tools/yam/yam 2006-09-18 11:40:30 UTC (rev 4723)
@@ -423,7 +423,7 @@
if os.path.exists(mount):
remove(mount)
info(5, '%s: %s already mounted, symlink ISO to %s' % (self.nick, os.path.basename(iso), mount))
- os.symlink(mount2, mount)
+ symlink(mount2, mount)
else:
if os.path.exists(mount) and not os.path.isdir(mount):
os.rename(mount, os.tempnam(os.path.dirname(mount), 'bak-'))
@@ -813,6 +813,8 @@
"Create a directory, and parents if needed"
if op.dryrun:
return
+ if os.path.islink(path):
+ os.unlink(path)
if not os.path.exists(path):
os.makedirs(path)
More information about the svn-commits
mailing list