LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   slackpkg+ 1.8 (https://www.linuxquestions.org/questions/slackware-14/slackpkg-1-8-a-4175669481/)

zerouno 02-27-2021 07:06 PM

Quote:

Originally Posted by drgibbon (Post 6218880)
I'm not sure I understand completely. With the default settings, there are two issues that I can see:

1) `slackpkg update` always acts like there are updates, even when there's nothing to update.
Specifically, on every run (with VERBOSE=3) I see something like this:
Code:

Files //var/lib/slackpkg/CHECKSUMS.md5.asc and /tmp/slackpkg.9Nstx0/CHECKSUMS.md5.asc differ
But why should they differ if nothing changed? On the user end, the outcome is that unlike with regular slackpkg, I never see this prompt anymore:
Code:

No changes in ChangeLog.txt between your last update and now.
Do you really want to download all other files (y/N)?

2) `slackpkg check-updates` pulls the whole ChangeLog
With the default slackpkg+ settings, `slackpkg check-updates` will download the entire ChangeLog from each repo to see if there are updates. That's pretty inefficient/slow, couldn't slackpkg+ just use the method of comparing cached vs upstream CHECKSUMS.md5.asc file on both 14.2 and -current? Or at a minimum, use that method if slackpkg-15 is detected?

I could not fix it becouse slackpkg+ 1.7.0d0 had to work both with slackware 14.2 and slackware 15, and the fix is an huge patch.

Now that slackpkg+ 1.7.1 no longer supports slackware 14.2, I can fix it.

please test that release

Code:

# wget https://raw.githubusercontent.com/zuno/slackpkgplus/test/src/slackpkgplus.sh -O /usr/libexec/slackpkg/functions.d/slackpkgplus.sh
It works for me. If it works for someother I will package it as 1.7.3 (not today since it's my birthday :party:)

drgibbon 02-27-2021 08:51 PM

Sounds like a good idea not to try and support 14.2/15.0 at the same time, too much work!

I tested the new code, seems to work nicely for the official Slackware packages when I did `slackpkg update`, but it didn't check any of my other repos (slackpkg+dev and alienbob), even though SLACKPKGPLUS=on.

Thanks for looking at it though, check it out whenever. And happy birthday ! :party::cool:

gegechris99 02-28-2021 01:46 AM

Quote:

Originally Posted by zerouno (Post 6225490)

please test that release

Code:

# wget https://raw.githubusercontent.com/zuno/slackpkgplus/test/src/slackpkgplus.sh -O /usr/libexec/slackpkg/functions.d/slackpkgplus.sh
It works for me. If it works for someother I will package it as 1.7.3 (not today since it's my birthday :party:)

Happy birthday.


I use slackpkg+ with third-party repositories and tested the new release.
"slackpkg update" works as advertised (question appears if nothing changed) and "slackpkg check-updates" is much quicker.

Thanks for the continued good work on slackpkg+.

drgibbon 02-28-2021 02:14 AM

Quote:

Originally Posted by gegechris99 (Post 6225596)
I use slackpkg+ with third-party repositories and tested the new release.
"slackpkg update" works as advertised (question appears if nothing changed)

The dialogue box is back for me too, but does `slackpkg update` check all your REPOPLUS for updates before asking that? For me it's only checking the main Slackware repo (and not alienbob or slackpkgplus repos, which I have set in slackpkgplus.conf).

check-updates is super fast too, very nice!

chrisretusn 02-28-2021 03:00 AM

Quote:

Originally Posted by drgibbon (Post 6225602)
The dialogue box is back for me too, but does `slackpkg update` check all your REPOPLUS for updates before asking that? For me it's only checking the main Slackware repo (and not alienbob or slackpkgplus repos, which I have set in slackpkgplus.conf).

check-updates is super fast too, very nice!

This is what I am seeing. It's checking all repositories with meta data. (highlighted in red)
Code:

slackpkg update

Updating the package lists...
        Downloading...
                Signatures
'/home/slackware/slackware64-current/CHECKSUMS.md5.asc' -> '/tmp/slackpkg.JtzUyE/CHECKSUMS.md5.asc'
'/home/non-slack/slackbuilds/CHECKSUMS.md5.asc' -> '/tmp/slackpkg.JtzUyE/CHECKSUMS.md5-nonslack.asc'
2021-02-28 16:51:31 URL:http://slakfinder.org/slackpkg+dev/CHECKSUMS.md5.asc [455/455] -> "/tmp/slackpkg.JtzUyE/CHECKSUMS.md5-slackpkgplus.asc" [1]
'/home/non-slack/multilib/current/CHECKSUMS.md5.asc' -> '/tmp/slackpkg.JtzUyE/CHECKSUMS.md5-multilib.asc'
'/home/non-slack/alienbob_restricted/current/x86_64/CHECKSUMS.md5.asc' -> '/tmp/slackpkg.JtzUyE/CHECKSUMS.md5-restricted.asc'
'/home/non-slack/alienbob/current/x86_64/CHECKSUMS.md5.asc' -> '/tmp/slackpkg.JtzUyE/CHECKSUMS.md5-alienbob.asc'

                No changes in ChangeLog.txt between your last update and now.
                Do you really want to download all other files (y/N)? >


chrisretusn 02-28-2021 03:08 AM

Now that it appears the error code from slackpkg is fixed, can we get that in slackpkg+?

This is what I get now.
Code:

slackpkg check-updates ; echo $?

Slackpkg: Updated packages are available since last check.

  [ Repository              ] [ Status              ]
    slackware                    AVAILABLE UPDATES   
    nonslack                        Up to date       
    slackpkgbeta                    Up to date       
    slackpkgplus                    Up to date       
    multilib                        Up to date       
    restricted                      Up to date       
    alienbob                    AVAILABLE UPDATES   

0

Code:

SLACKPKGPLUS=off slackpkg check-updates ; echo $?

Slackpkg: Updated packages are available since last check.

1

Edit: Using a patched version of slackpkg-15.0.1_testC-noarch-1
patches here, here and here

gegechris99 02-28-2021 03:24 AM

Quote:

Originally Posted by drgibbon (Post 6225602)
The dialogue box is back for me too, but does `slackpkg update` check all your REPOPLUS for updates before asking that? For me it's only checking the main Slackware repo (and not alienbob or slackpkgplus repos, which I have set in slackpkgplus.conf).

Yes it does.

Code:

$ slackpkg update

Updating the package lists...
        Downloading...
                Signatures
    File: slackware            -> CHECKSUMS.md5.asc    .. Cached.
    File: slackpkgplus        -> CHECKSUMS.md5.asc    .. Cached.
    File: alienbob            -> CHECKSUMS.md5.asc    .. Cached.
    File: restricted          -> CHECKSUMS.md5.asc    .. Cached.

                No changes in ChangeLog.txt between your last update and now.
                Do you really want to download all other files (y/N)?

You can see that slackpkg+ cycles through the repositories I have defined in my slackpkgplus.conf.

Without CACHE option, it's the same:

Code:

$ slackpkg update

Updating the package lists...
        Downloading...
                Signatures
2021-02-28 10:24:24 URL:https://slackware.nl/slackware/slackware64-current/CHECKSUMS.md5.asc [163/163] -> "/tmp/slackpkg.8EGH4s/CHECKSUMS.md5.asc" [1]
2021-02-28 10:24:25 URL:http://slakfinder.org/slackpkg+15/CHECKSUMS.md5.asc [455/455] -> "/tmp/slackpkg.8EGH4s/CHECKSUMS.md5-slackpkgplus.asc" [1]
2021-02-28 10:24:25 URL:https://slackware.nl/people/alien/sbrepos/current/x86_64/CHECKSUMS.md5.asc [163/163] -> "/tmp/slackpkg.8EGH4s/CHECKSUMS.md5-alienbob.asc" [1]
2021-02-28 10:24:25 URL:https://slackware.nl/people/alien/restricted_sbrepos/current/x86_64/CHECKSUMS.md5.asc [163/163] -> "/tmp/slackpkg.8EGH4s/CHECKSUMS.md5-restricted.asc" [1]

                No changes in ChangeLog.txt between your last update and now.
                Do you really want to download all other files (y/N)?


zerouno 02-28-2021 03:38 AM

Quote:

Originally Posted by drgibbon (Post 6225539)
I did `slackpkg update`, but it didn't check any of my other repos

Can you pist the evidence?

Quote:

And happy birthday ! :party::cool:
Thanks you all :)


Quote:

Originally Posted by chrisretusn
Now that it appears the error code from slackpkg is fixed, can we get that in slackpkg+?

Yes I will do

drgibbon 02-28-2021 08:53 AM

Quote:

Originally Posted by zerouno (Post 6225627)
Can you post the evidence?

I take it back, the problem was not with slackpkg+ but my configuration. Not sure exactly what, but I reset to a standard config and set things up again, and it works nicely:

Code:

# slackpkg update

Updating the package lists...
        Downloading...
                Signatures
2021-02-28 22:51:25 URL:http://mirrors.us.kernel.org/slackware/slackware64-current/CHECKSUMS.md5.asc [163/163] -> "/tmp/slackpkg.kNeB6X/CHECKSUMS.md5.asc" [1]
2021-02-28 22:51:26 URL:http://slakfinder.org/slackpkg+dev/CHECKSUMS.md5.asc [455/455] -> "/tmp/slackpkg.kNeB6X/CHECKSUMS.md5-slackpkgplus.asc" [1]
2021-02-28 22:51:27 URL:https://slackware.nl/people/alien/sbrepos/current/x86_64/CHECKSUMS.md5.asc [163/163] -> "/tmp/slackpkg.kNeB6X/CHECKSUMS.md5-alienbob.asc" [1]

                No changes in ChangeLog.txt between your last update and now.
                Do you really want to download all other files (y/N)?

WOo, thanks! :cool:

zerouno 02-28-2021 09:23 AM

Which configuration you had?

drgibbon 02-28-2021 09:39 AM

I got rid of /etc/slackpkg/slackpkgplus.conf and started fresh, but looking again I probably didn't chmod +x the new slackpkgplus.sh in /usr/libexec/slackpkg/functions.d/ the first time around, since chmod -x on it produces the same behaviour I was seeing. In any case, there's no problem with slackpkg+.

rworkman 02-28-2021 01:46 PM

Does this address all of the issues with vanilla slackpkg? https://slackpkg.org/slackpkg-15.0.1_testD-noarch-1.txz

zerouno 03-01-2021 01:19 PM

Quote:

Originally Posted by chrisretusn (Post 6225618)
Now that it appears the error code from slackpkg is fixed, can we get that in slackpkg+?

slackpkg-15.0.1_testD-noarch-1 does not add the fix, so I will wait to add to slackpkg+

zerouno 03-01-2021 02:34 PM

slackpkg+-1.7.3-noarch-1mt.txz released in slackpkg+dev branch

chrisretusn 03-02-2021 03:27 AM

I had to read your post a few times. LOL.
Quote:

Originally Posted by zerouno (Post 6226203)
slackpkg-15.0.1_testD-noarch-1 does not add the fix, so I will wait to add to slackpkg+

I missed that this part

Quote:

Originally Posted by zerouno (Post 6226238)
slackpkg+-1.7.3-noarch-1mt.txz released in slackpkg+dev branch

My excuse? This post. LOL

I was testing and saw a "0", then after reading again. :doh:


All times are GMT -5. The time now is 04:02 PM.