winpax / sfsu

(WIP) A modern, and very very fast, implementation of Scoop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

info: `Updated at` date not accurate

brian6932 opened this issue · comments

Describe the bug

Seems like Updated at's using the last commit in the bucket

Expected behavior

The commit date should be context dependent on the package (and info should also support <bucket>/<package> syntax)

Full Output

❯ scoop.ps1 info main/python

Name        : python
Description : A programming language that lets you work quickly and integrate systems more effectively.
Version     : 3.12.2
Bucket      : main
Website     : https://www.python.org
License     : Python-2.0
Updated at  : 2024-02-06 7:33:43 PM
Updated by  : github-actions[bot]
Installed   : 3.12.2
Binaries    : python3.exe | Lib\idlelib\idle.bat | idle3.bat
Path Added  : <root>\Scripts
              <root>
Notes       : Allow applications and third-party installers to find python by running: "<root>\install-pep-514.reg"

❯ scoop info main/python
No package found with the name "main/python"

❯ scoop info python
Found 2 packages, matching "python":
Name        : python
Description : A programming language that lets you work quickly and integrate systems more effectively.
Version     : 3.12.2
Bucket      : main
Website     : https://www.python.org/
License     : Python-2.0
Updated at  : 2024-03-24 21:16:48 +08:00
Updated by  : TerminalMan <84923604+SecretiveShell@users.noreply.github.com>
Installed   : Yes
Binaries    : python.exe,python3,Lib\idlelib\idle.bat,Lib\idlelib\idle.bat,idle3
Notes       : Allow applications and third-party installers to find python by running: "$dir\install-pep-514.reg"

Version

1.8.6

I've fixed this in the above PR, but currently, it uses the commit message to search for the manifest name, so it will only work with buckets that structure their commits the same as Scoop.

(i.e <package>: <message>)

I'm working to see if I can check which files were changed rather than using the commit message.