Bug 770604 - nsinstall.py should abspath during directory creation too. r=khuey
authorSiddharth Agarwal <sid.bugzilla@gmail.com>
Wed, 04 Jul 2012 00:17:21 +0530
changeset 103013 71982be9e5375579d5372f97b507bd255f81324b
parent 103012 c54c4e2f80585513e2b606ce45a99fd2f572476b
child 103014 477d807660d7093abdebdb91ffd360eb7567b987
child 103059 e50461d4bfc843b332fdd3ba7f78b3ed17ee344a
push id1316
push userakeybl@mozilla.com
push dateMon, 27 Aug 2012 22:37:00 +0000
treeherdermozilla-beta@db4b09302ee2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskhuey
bugs770604
milestone16.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 770604 - nsinstall.py should abspath during directory creation too. r=khuey
config/nsinstall.py
js/src/config/nsinstall.py
--- a/config/nsinstall.py
+++ b/config/nsinstall.py
@@ -58,16 +58,17 @@ def _nsinstall_internal(argv):
     try:
       options.m = int(options.m, 8)
     except:
       sys.stderr.write('nsinstall: ' + options.m + ' is not a valid mode\n')
       return 1
 
   # just create one directory?
   def maybe_create_dir(dir, mode, try_again):
+    dir = os.path.abspath(dir)
     if os.path.exists(dir):
       if not os.path.isdir(dir):
         print >> sys.stderr, ('nsinstall: %s is not a directory' % dir)
         return 1
       if mode:
         os.chmod(dir, mode)
       return 0
 
--- a/js/src/config/nsinstall.py
+++ b/js/src/config/nsinstall.py
@@ -58,16 +58,17 @@ def _nsinstall_internal(argv):
     try:
       options.m = int(options.m, 8)
     except:
       sys.stderr.write('nsinstall: ' + options.m + ' is not a valid mode\n')
       return 1
 
   # just create one directory?
   def maybe_create_dir(dir, mode, try_again):
+    dir = os.path.abspath(dir)
     if os.path.exists(dir):
       if not os.path.isdir(dir):
         print >> sys.stderr, ('nsinstall: %s is not a directory' % dir)
         return 1
       if mode:
         os.chmod(dir, mode)
       return 0