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

WIP: Implement a method of retrieving the package update time #155

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Commits on Mar 3, 2023

  1. WIP: Implement a method of retrieving the package update time

    The package update time is based on the last update of the _source_
    pacakge, not the binary package.  To do this, I have a server
    application, currently hosted on piggz.co.uk:8081 which uses the OBS API
    to build a JSON model, relating projects, packages, repositories and
    binaries.
    
    To find the package mtime, you iterate the model, searching for the
    project, then find the repository matching the current device, then look
    for the package in the binaries.  WHen the pacakge is found from the
    binary, get the mtime from the source package list.
    
    Currently I dont know how to get the repo name from SSU, therfore the
    arch is hardcoded as aarch64.
    
    Included some simple update to the QML to show the update time, nothing
    more complicated such as a section of "recently udpated apps"
    
    Server code will be posted later for comment, it could certainly be
    improved (currently a single large cache), and Im happy for others to
    take this on if the idea is sound.
    piggz committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    3556c12 View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2023

  1. Move the cache loading to Chum from ChumPackageModel

    Load the cache as the first step in refreshing the repository details
    and implement the mtime parameter as a property of the package like all
    other properties.
    piggz committed Mar 5, 2023
    Configuration menu
    Copy the full SHA
    b039a08 View commit details
    Browse the repository at this point in the history