1 |
On 06/23/2016 12:38 AM, Zac Medico wrote: |
2 |
> @@ -2113,6 +2129,19 @@ class depgraph(object): |
3 |
> |
4 |
> self._dynamic_config._need_restart = True |
5 |
> |
6 |
> + def _upgrade_available(self, pkg): |
7 |
> + """ |
8 |
> + Detect cases where an upgrade of the given package is available |
9 |
> + within the same slot. |
10 |
> + """ |
11 |
> + available_pkg = None |
12 |
> + for available_pkg in self._iter_similar_available(pkg, |
13 |
> + pkg.slot_atom): |
14 |
> + if available_pkg >= pkg: |
15 |
> + return True |
16 |
> + |
17 |
> + return False |
18 |
> + |
19 |
|
20 |
I've fixed this method to use the > operator instead of the >= operator. |
21 |
The latest version is in my branch here: |
22 |
|
23 |
https://github.com/zmedico/portage/tree/bug_584626 |
24 |
|
25 |
I've also opened this pull request so that travis runs the tests: |
26 |
|
27 |
https://github.com/gentoo/portage/pull/29 |
28 |
-- |
29 |
Thanks, |
30 |
Zac |