]> scripts.mit.edu Git - wizard.git/blobdiff - wizard/command/upgrade.py
Properly work around broken symbolic links.
[wizard.git] / wizard / command / upgrade.py
index 39c73c9addb573e3283b9decef60758ffd02b2c8..c4fb8c66979356e69592ebac8898b4807d475d66 100644 (file)
@@ -225,7 +225,7 @@ class Upgrade(object):
         new_files = get_file_set(self.version)
         added_files = new_files - old_files
         for f in added_files:
-            if os.path.exists(f):
+            if os.path.lexists(f): # broken symbolic links count too!
                 shell.call("git", "add", f)
         message = "Pre-commit of %s locker before autoinstall upgrade.\n\n%s" % (util.get_dir_owner(), util.get_git_footer())
         try: