Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print "Last processed on" in addition to "Last updated on" #126

Open
sidt4 opened this issue Oct 3, 2023 · 2 comments
Open

Print "Last processed on" in addition to "Last updated on" #126

sidt4 opened this issue Oct 3, 2023 · 2 comments

Comments

@sidt4
Copy link

sidt4 commented Oct 3, 2023

Due to recent appstream generation infrastructure issue (https://forums.debian.net/viewtopic.php?p=783933), metadata was not updated for apps. AS went live again yesterday, but I'm not yet seeing the updated metadata. It's quite difficult and tedious to look into the logs to figure out what exactly happened. It would be nice to have more details in the app's metainfo page.

E.g. Add the following information

Current Status:

Last updated on: 2023-09-02 20:37 [UTC]

New Status:

Last updated on: 2023-09-02 20:37 [UTC], Last processed on: 2023-10-02 20:37 [UTC]

When hovering over the Last processed on, we can show

Last processed version: 44.2-3
Result: No change

Example:

From https://appstream.debian.org/sid/main/metainfo/gnome-boxes.html

Appstream metadata for gnome-boxes is 44.2-3

Metadata for gnome-boxes in main
org.gnome.Boxes.desktop - 44.2-3 ⚙ amd64 ⚙ arm64 ⚙ armel ⚙ armhf ⚙ i386 ⚙ mips64el ⚙ mipsel ⚙ ppc64el ⚙ s390x 

Latest available gnome-boxes is 45.0-1

$ apt policy gnome-boxes
gnome-boxes:
  Installed: 45.0-1
  Candidate: 45.0-1
  Version table:
 *** 45.0-1 500
        500 http://httpredir.debian.org/debian sid/main amd64 Packages
        100 /var/lib/dpkg/status
@ximion
Copy link
Owner

ximion commented Oct 3, 2023

"Last updated" is the same as "Last processed" - pages are always refreshed unless there is no change.
What you are running into is the fact that the CDN copy wasn't fully up-to-date yet. There's really nothing asgen could do about that.

@sidt4
Copy link
Author

sidt4 commented Oct 4, 2023

"Last updated" is the same as "Last processed" - pages are always refreshed unless there is no change.

Should this be called as Last generated on ( generated as in appstream generator ) ?

Since we're dealing with packages Updated have a different meaning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants