pacstall / pacstall

An AUR-inspired package manager for Ubuntu
https://pacstall.dev
GNU General Public License v3.0
1.28k stars 45 forks source link

Pacstall isn't detecting that (at least) `go-task-deb` needs to be upgraded #1031

Closed lfromanini closed 7 months ago

lfromanini commented 7 months ago

Describe the bug

Hello!

Last week, I pushed two PRs to pacstall-programs:

Both PRs were merged to master. Today, when I tried to upgrade those softwares with pacstall, only DBeaver was updated.

To reproduce

  1. Using pacstall, install a version of go-task-deb smaller than the latest one available on pacstall-programs.
  2. Run pacstall --upgrade to upgrade go-task-deb to the latest version.

Expected behavior

go-task-deb should be upgraded.

Screenshots

luiz ~ %  pacstall -S go-task 
go-task-deb @ github:pacstall/pacstall-programs 

luiz ~ %  task --version
Task version: v3.33.1 (h1:JJSRANHH7RQrr5Z2CTvSnTH7iWlfBlKV2W2O0JiZoLk=)

luiz ~ %  pacstall --update && pacstall --upgrade
[sudo] password for luiz:       

    ____                  __        ____
   / __ \____ ___________/ /_____ _/ / /
  / /_/ / __ `/ ___/ ___/ __/ __ `/ / /
 / ____/ /_/ / /__(__  ) /_/ /_/ / / /
/_/    \__,_/\___/____/\__/\__,_/_/_/

[+] INFO: Updated from 4.3.2 (pacstall master) -> 4.3.2 (pacstall master)
Useful links:
    Website: https://pacstall.dev
    Packages: https://pacstall.dev/packages
    GitHub: https://github.com/pacstall
    Report Bugs: https://github.com/pacstall/pacstall/issues
    Discord: https://discord.gg/yzrjXJV6K8
    Matrix: https://matrix.to/#/#pacstall:matrix.org
[+] INFO: Checking for updates
    [>] Building dependency tree
    [>] Checking versions
[+] INFO: Nothing to upgrade

luiz ~ %  pacstall -I go-task-deb
(go-task-deb) Do you want to view/edit the pacscript? [y/N] 
[+] INFO: Sourcing pacscript
[+] INFO: Retrieving packages
Initializing download: https://github.com/go-task/task/releases/download/v3.34.0/task_linux_amd64.deb
File size: 3.43488 Megabyte(s) (3601736 bytes)
Opening output file task_linux_amd64.deb
Starting download

Connection 0 finished
Connection 1 finished
Connection 2 finished
[100%] [.........................................................................................................................................................................................................................................................................................] [   4.3MB/s] [00:00]

Downloaded 3.43488 Megabyte(s) in 0 second(s). (4400.33 KB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'task' instead of './task_linux_amd64.deb'
The following packages will be upgraded:
  task
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/3602 kB of archives.
After this operation, 77.8 kB of additional disk space will be used.
Get:1 /tmp/pacstall/task_linux_amd64.deb task amd64 3.34.0 [3602 kB]
(Reading database ... 382003 files and directories currently installed.)
Preparing to unpack .../pacstall/task_linux_amd64.deb ...
Unpacking task (3.34.0) over (3.33.1) ...
Setting up task (3.34.0) ...
[+] INFO: Storing pacscript
[+] INFO: Cleaning up

luiz ~ %  task --version
Task version: v3.34.0 (h1:T3U3cHx6QN/JfGNBIaJi8iDyrgvKEpldVtHxRkFuP9I=)

OS version

Debian Bookworm

Pacstall version

4.3.2, master branch

Elsie19 commented 7 months ago

Did you use pacup to make those PRs (or ever in the past)?

Also send the contents of /var/lib/pacstall/metadata/go-task-deb

lfromanini commented 7 months ago

No, I never used pacup.

Contents are:

luiz ~ %  cat /var/lib/pacstall/metadata/go-task-deb
_name="go-task-deb"
_version="3.34.0"
_install_size=""
_date="Mon Jan 29 08:22:33 PM CET 2024"
_maintainer="lfromanini <lfromanini@yahoo.com>"
_gives="task"
_remoterepo="https://github.com/pacstall/pacstall-programs"
_remotebranch="master"
Elsie19 commented 7 months ago

weird, I don't know how this would happen, but the next time it does, reopen this issue and give me the file contents again before and after you -I it.

lfromanini commented 7 months ago

Ok. go-task has a new release v3.34.1. I will send the PR to pacstall-programs and catch the contents as you mentioned.

Thanks for now.

lfromanini commented 7 months ago

Here it is: pacstall-programs PR # 5575. Once you merge, I'll do the tests you asked and collect the logs.

lfromanini commented 7 months ago

@Elsie19 , I think I don't have the authority to reopen this issue, so I created a new one: #1033. The information you asked is there and also bellow, for your convenience:

luiz ~ %  cat /var/lib/pacstall/metadata/go-task-deb
_name="go-task-deb"
_version="3.34.0"
_install_size=""
_date="Mon Jan 29 08:22:33 PM CET 2024"
_maintainer="lfromanini <lfromanini@yahoo.com>"
_gives="task"
_remoterepo="https://github.com/pacstall/pacstall-programs"
_remotebranch="master"

luiz ~ %  pacstall --update && pacstall --upgrade
[sudo] password for luiz:       

    ____                  __        ____
   / __ \____ ___________/ /_____ _/ / /
  / /_/ / __ `/ ___/ ___/ __/ __ `/ / /
 / ____/ /_/ / /__(__  ) /_/ /_/ / / /
/_/    \__,_/\___/____/\__/\__,_/_/_/

[+] INFO: Updated from 4.3.2 (pacstall master) -> 4.3.2 (pacstall master)
Useful links:
    Website: https://pacstall.dev
    Packages: https://pacstall.dev/packages
    GitHub: https://github.com/pacstall
    Report Bugs: https://github.com/pacstall/pacstall/issues
    Discord: https://discord.gg/yzrjXJV6K8
    Matrix: https://matrix.to/#/#pacstall:matrix.org
[+] INFO: Checking for updates
    [>] Building dependency tree
    [>] Checking versions
[+] INFO: Nothing to upgrade

luiz ~ %  pacstall -I go-task-deb
(go-task-deb) Do you want to view/edit the pacscript? [y/N] N
[+] INFO: Sourcing pacscript
[+] INFO: Retrieving packages
Initializing download: https://github.com/go-task/task/releases/download/v3.34.1/task_linux_amd64.deb
File size: 3.4349 Megabyte(s) (3601758 bytes)
Opening output file task_linux_amd64.deb
Starting download

Connection 3 finished
Connection 0 finished
Connection 2 finished
Connection 1 finished
[100%] [.........................................................................................................................................................................................................................................................................................] [   2.6MB/s] [00:00]

Downloaded 3.4349 Megabyte(s) in 1 second(s). (2652.04 KB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'task' instead of './task_linux_amd64.deb'
The following packages will be upgraded:
  task
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/3602 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 /tmp/pacstall/task_linux_amd64.deb task amd64 3.34.1 [3602 kB]
(Reading database ... 382003 files and directories currently installed.)
Preparing to unpack .../pacstall/task_linux_amd64.deb ...
Unpacking task (3.34.1) over (3.34.0) ...
Setting up task (3.34.1) ...
[+] INFO: Storing pacscript
[+] INFO: Cleaning up

luiz ~ %  cat /var/lib/pacstall/metadata/go-task-deb
_name="go-task-deb"
_version="3.34.1"
_install_size=""
_date="Tue Jan 30 05:19:41 PM CET 2024"
_maintainer="lfromanini <lfromanini@yahoo.com>"
_gives="task"
_remoterepo="https://github.com/pacstall/pacstall-programs"
_remotebranch="master"