[csw-devel] SF.net SVN: gar:[15059] csw/mgar/gar/v2/lib/python/pkgdb.py
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Fri Jul 15 09:13:10 CEST 2011
Revision: 15059
http://gar.svn.sourceforge.net/gar/?rev=15059&view=rev
Author: wahwah
Date: 2011-07-15 07:13:10 +0000 (Fri, 15 Jul 2011)
Log Message:
-----------
pkgdb: Better error message when linking files
Modified Paths:
--------------
csw/mgar/gar/v2/lib/python/pkgdb.py
Modified: csw/mgar/gar/v2/lib/python/pkgdb.py
===================================================================
--- csw/mgar/gar/v2/lib/python/pkgdb.py 2011-07-15 07:12:51 UTC (rev 15058)
+++ csw/mgar/gar/v2/lib/python/pkgdb.py 2011-07-15 07:13:10 UTC (rev 15059)
@@ -641,7 +641,12 @@
else:
# Hardlink
logging.debug("cp -l %s %s/%s", src_path, tgt_path, pkg.basename)
- os.link(src_path, os.path.join(tgt_path, pkg.basename))
+ tgt_filename = os.path.join(tgt_path, pkg.basename)
+ try:
+ os.link(src_path, tgt_filename)
+ except OSError, e:
+ logging.fatal("Could not link %s to %s", src_path, tgt_filename)
+ raise
prev_osrels.append(osrel_short)
elif (command, subcommand) == ('show', 'files'):
md5_sum = args[0]
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list