commit:     3ba7c294e8aa701c38a251728843c1a954f68c38
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Thu Apr  5 18:23:54 2018 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Thu Apr  5 18:23:54 2018 +0000
URL:        https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=3ba7c294

Revert "qmerge: Only fetch Packages if -f/-F is specified"

This commit changed the logic from fetching Packages when -f is set, to
forcing when -F is set.  This is contradicting the documented behaviour
and broke the tests.

It is not clear to me anymore why this change was necessary, so I'm
reverging it.

This reverts commit eedb0ea266b78efd84bc34bc2c6602fb713ba590.

 qmerge.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/qmerge.c b/qmerge.c
index 960a9a4..583e4fb 100644
--- a/qmerge.c
+++ b/qmerge.c
@@ -190,8 +190,8 @@ qmerge_initialize(void)
        mkdir_p(buf, 0755);
        xchdir(buf);
 
-       if (force_download) {
-               if (force_download == 2)
+       if (force_download != 2) {
+               if (force_download)
                        unlink(Packages);
 
                if (access(Packages, R_OK) != 0)

Reply via email to