Re: [PATCH 07/14] Disable repo before deleting it, otherwise yum will want to use it later.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> diff --git a/iw/task_gui.py b/iw/task_gui.py
> index 3262a78..365e2d0 100644
> --- a/iw/task_gui.py
> +++ b/iw/task_gui.py
> @@ -66,6 +66,8 @@ def setupRepo(anaconda, repo):
>                  "Please ensure that your repository has been "
>                  "correctly generated.\n\n%s" % str(e)),
>                                  type="ok", custom_icon="error")
> +        repo.disable()
> +        repo.close()
>          anaconda.backend.ayum.repos.delete(repo.id)
>          return False
>  
> @@ -368,6 +370,7 @@ class RepoEditor:
>                  except:
>                      pass
>  
> +                self.repo.disable()
>                  self.repo.close()
>                  self.anaconda.backend.ayum.repos.delete(self.repo.id)
>                  log.info("deleted (UI) repository %s with source URL %s, id:%s"

Strange, but ACK.  This alone probably fixes some odd behavior in the
UI.

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux