def do_update(self, args): """Update the current package to the latest version. """ if self.checkout is not None: vcs = VCS(self.checkout) if vcs.inspect(checkout=False, update=True): vcs.install() self.session.need_reconfigure() else: raise InstallationError( u"No repository is defined for the working environment.") return False
def prepare(checkout): repository = VCS(checkout) repository.inspect(update=update) return repository