Lines Matching refs:sDst
182 sDst = os.path.join(g_ksValidationKitDir, sMember[len('testboxscript/'):]);
186 if os.path.exists(sDst):
187 testboxcommons.log2('Info: Installing "%s"' % (sDst,));
188 sDstRm = '%s-delete-me-%s' % (sDst, uuid.uuid4(),);
190 os.rename(sDst, sDstRm);
192 testboxcommons.log('Error: failed to rename (old) "%s" to "%s": %s' % (sDst, sDstRm, oXcpt));
194 shutil.copy(sDst, sDstRm);
196 testboxcommons.log('Error: failed to copy (old) "%s" to "%s": %s' % (sDst, sDstRm, oXcpt));
199 os.unlink(sDst);
201 testboxcommons.log('Error: failed to unlink (old) "%s": %s' % (sDst, oXcpt));
205 testboxcommons.log2('Info: Installing "%s"' % (sDst,));
207 os.rename(sSrc, sDst);
209 testboxcommons.log('Warning: failed to rename (new) "%s" to "%s": %s' % (sSrc, sDst, oXcpt));
211 shutil.copy(sSrc, sDst);
213 testboxcommons.log('Error: failed to copy (new) "%s" to "%s": %s' % (sSrc, sDst, oXcpt));
223 sDst = sDstRm[:sDstRm.rfind('-delete-me')];
224 testboxcommons.log2('Info: Rolling back "%s" (%s)' % (sDst, os.path.basename(sDstRm)));
226 shutil.move(sDstRm, sDst);
228 testboxcommons.log('Error: failed to rollback "%s" onto "%s": %s' % (sDstRm, sDst, oXcpt));