Subject: bug#43800: 28.0.50; Package already install but still connecting to MELPA at start

From: Pankaj Jangid <[email-masked]>
Date: Mon, 16 Nov 2020 11:07:15 +0530

Stefan Kangas <[email-masked]> writes:

> Pankaj Jangid <[email-masked]> writes:
>
>>> So, basically you're saying that
>>>
>>> (package-installed-p 'flymake)
>>>
>>> returns nil, but flymake is installed?
>>
>> Yes. And more info on this.
>>
>> 1. Launch fresh emacs instance
>> 2. (package-installed-p 'flymake)
>>    ⇒ nil
>> 3. M-x package-refresh-contents
>>    ;; wait for completion
>>    (package-installed-p 'flymake)
>>    ⇒ nil
>> 4. M-x list-packages
>>    ;; wait for completion
>>    (package-installed-p 'flymake)
>>    ⇒ t
>
> Could you please provide a recipe to reproduce this bug, starting from
> emacs -Q?  I tried the following on current master and Emacs 27:
>
> 0. emacs -Q
> 1. Evaluate:
> (progn
>   (package-initialize)
>   (package-installed-p 'flymake))

This is returning `t' on both - `master' as well as `emacs-27'. Should I
close this?