cassava/repoctl

repoctl status: entry names

Closed this issue · 5 comments

AladW commented

repoctl status lists new packages as update, which gives me the impression it needs an update. "updated" would be more clear.

Perhaps it would also be useful to distinguish between packages which are newer in the repo (older on the AUR), similar to pacman -Sl or cower -i.

I'm also having an obsolete entry, which I'm unsure on the meaning. It doesn't seem to match the out of date field from the AUR.

Output: https://paste.xinu.at/n8TA/

AladW commented

Looks like the "obsolete" meaning is clarified in repoctl status -h, which I missed somehow. repoctl list -a also shows newer repo packages.

Hey @AladW, thanks for the report.

When you look at the repoctl status, it shows you the difference between what's in the directory and the database. So update means that there is a file that causes that database entry to be updated. Obsolete means there is an additional file that will be backed up or deleted.

So if I had pacman-3.3-blah and pacman-3.4-blah, then pacman-3.3-blah would be removed.
Does that answer the question? Do you think better documentation would rectify this, or do you still think that the label should be changed?

–Ben

AladW commented

Ah, I see what you mean. Perhaps change the help text to directly refer
to the entries, for example:

obsolete package files that can be deleted (or backed up)

to (adding a colon)

obsolete: package files that can be deleted (or backed up)

Ben Morgan wrote:

Hey @AladW https://github.com/AladW, thanks for the report.

When you look at the |repoctl status|, it shows you the difference
between what's in the directory and the database. So |update| means
that there is a file that causes that database entry to be updated.
Obsolete means there is an additional file that will be backed up or
deleted.

So if I had pacman-3.3-blah and pacman-3.4-blah, then pacman-3.3-blah
would be removed.
Does that answer the question? Do you think better documentation would
rectify this, or do you still think that the label should be changed?

–Ben


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#25 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AFQJJI46dzZaOgFMi-A3I40Avw-MulmNks5qKsSCgaJpZM4IzivS.

I modified the help in commit 49d62d3. Thoughts?

Show pending changes to the database and packages that can be updated.

  In particular, the following is shown:

    "updated":  database entries that can be updated/added (new package files)
    "obsolete": package files that can be deleted (or backed up)
    "removal":  database entries that should be deleted (no package files)
    "upgrade":  packages with updates in AUR (only with -a)
    "!aur":     packages unavailable in AUR (only with -m)

Usage:
  repoctl status [--aur] [flags]
...
AladW commented

This works, thanks. 👍