Unset last-install-rev if we uninstall a module.

wilder
Michael Pyne 14 years ago
parent 88629f25e3
commit 6ce81c4198
  1. 12
      kdesrc-build

@ -3195,11 +3195,15 @@ EOF
# We can optionally uninstall prior to installing
# to weed out old unused files.
if ($self->getOption('use-clean-install') &&
$self->getPersistentOption('last-install-rev') &&
!$self->buildSystem()->uninstallInternal(@makeInstallOpts))
$self->getPersistentOption('last-install-rev'))
{
warning ("\tUnable to uninstall r[$self] before installing the new build.");
warning ("\tContinuing anyways...");
if (!$self->buildSystem()->uninstallInternal(@makeInstallOpts)) {
warning ("\tUnable to uninstall r[$self] before installing the new build.");
warning ("\tContinuing anyways...");
}
else {
$self->unsetPersistentOption('last-install-rev');
}
}
if (!$self->buildSystem()->installInternal(@makeInstallOpts))

Loading…
Cancel
Save