if options.mode == 'commit' and repolevel not in [1,2,3]:
print(red("***")+" Commit attempts *must* be from within a vcs co, category, or package directory.")
print(red("***")+" Attempting to commit from a packages files directory will be blocked for instance.")
- print(red("***")+" This is intended behaviour, to ensure the manifest is recommited for a package.")
+ print(red("***")+" This is intended behaviour, to ensure the manifest is recommitted for a package.")
print(red("***"))
err("Unable to identify level we're commiting from for %s" % '/'.join(reposplit))
myvcstree=portage.cvstree.getentries("./",recursive=1)
myunadded=portage.cvstree.findunadded(myvcstree,recursive=1,basedir="./")
except SystemExit as e:
- raise # TODO propogate this
+ raise # TODO propagate this
except:
err("Error retrieving CVS tree; exiting.")
if vcs == "svn":
svnstatus=os.popen("svn status --no-ignore").readlines()
myunadded = [ "./"+elem.rstrip().split()[1] for elem in svnstatus if elem.startswith("?") or elem.startswith("I") ]
except SystemExit as e:
- raise # TODO propogate this
+ raise # TODO propagate this
except:
err("Error retrieving SVN info; exiting.")
if vcs == "git":
bzrstatus=os.popen("bzr status -S .").readlines()
myunadded = [ "./"+elem.rstrip().split()[1].split('/')[-1:][0] for elem in bzrstatus if elem.startswith("?") or elem[0:2] == " D" ]
except SystemExit as e:
- raise # TODO propogate this
+ raise # TODO propagate this
except:
err("Error retrieving bzr info; exiting.")
if vcs == "hg":
myheaders.append(myfile)
print("%s have headers that will change." % green(str(len(myheaders))))
- print("* Files with headers will cause the " + \
- "manifests to be made and recommited.")
+ print("* Files with headers will cause the manifests to be changed and committed separately.")
logging.info("myupdates: %s", myupdates)
logging.info("myheaders: %s", myheaders)
raise CommandNotFound(mycommand[0])
# If we haven't been told what file descriptors to use
- # default to propogating our stdin, stdout and stderr.
+ # default to propagating our stdin, stdout and stderr.
if fd_pipes is None:
fd_pipes = {
0:sys.stdin.fileno(),
raise
except Exception as e:
# We need to catch _any_ exception so that it doesn't
- # propogate out of this function and cause exiting
+ # propagate out of this function and cause exiting
# with anything other than os._exit()
sys.stderr.write("%s:\n %s\n" % (e, " ".join(mycommand)))
traceback.print_exc()