On 26/11/24 09:05, Will McDonald wrote:
On Mon, 25 Nov 2024 at 21:46, Stephen Morris <steve.morris...@gmail.com> wrote:

    On 25/11/24 09:58, Will McDonald wrote:
    On Sun, 24 Nov 2024 at 22:21, Stephen Morris
    <steve.morris...@gmail.com> wrote:

            1).    Why is it producing the messages "Updating and
        loading repositories:"and "Repositories loaded." with nothing
        between them which means that it didn't do anything? This
        functionality is independent of whether the command is issued
        under sudo or not.


    I would suspect that "Updating and loading repositories:" is
    checking the upstream repo metadata (if you've ever managed your
    own repos, this is the data created/updated by createrepo based
    on the RPM contents in the repo directory.)
    Yes, but I would expect those messages to only be produced in the
    situation you have shown, where it actually did find something to
    do. If there is nothing to do I would expect those two messages to
    not be displayed and a message to the effect that the local
    environment was up to date.


So if I understand you then, your primary concern here is the semantic accuracy of the messages?

> Updating and loading repositories
> Repositories loaded.

And you would rather something like:

Scenario: DNF Cache Outdated
> Checking repositories cache status
> Cache out-of-date, updating from upstream repositories
> Repository cache updated

Scenario: DNF Cache Current
> Checking repositories cache status
> Cache current, nothing to see here.

(Or whatever.)

You might want to take this to the upstream project, maybe submitting a bug report, documentation improvement, or PR if you feel particularly invested?

https://github.com/rpm-software-management/dnf5/discussions
https://github.com/rpm-software-management/dnf5/issues

Thanks Will, I will consider doing that. I was more looking for a message like "Repositories up to date, nothing to do" as other software I've used does. With the explanation of what dnf is doing, if an end used runs the dnf clean command with whatever obligatory sub-command they chose will their repositories lose all knowledge of what packages have been updated, or will dnf update/upgrade refresh that data irrespective of whether --refresh is specified or not?

regards,
Steve

Attachment: OpenPGP_0x1EBE7C07B0F7242C.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

-- 
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to