Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Unified Diff: native_client_sdk/src/build_tools/buildbot_common.py

Issue 10539082: Add DSC files for the various examples. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/build_tools/buildbot_common.py
===================================================================
--- native_client_sdk/src/build_tools/buildbot_common.py (revision 141376)
+++ native_client_sdk/src/build_tools/buildbot_common.py (working copy)
@@ -52,11 +52,15 @@
for exc in excludes:
args.append('--exclude=' + exc)
print 'cp -r %s %s' % (src, dst)
+ if os.path.abspath(src) == os.path.abspath(dst):
+ ErrorExit('ERROR: Copying directory onto itself: ' + src)
oshelpers.Copy(args)
def CopyFile(src, dst):
print 'cp -r %s %s' % (src, dst)
+ if os.path.abspath(src) == os.path.abspath(dst):
+ ErrorExit('ERROR: Copying file onto itself: ' + src)
args = [src, dst]
oshelpers.Copy(args)

Powered by Google App Engine
This is Rietveld 408576698