LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-12-2021, 03:07 AM   #1
regdub
Member
 
Registered: Apr 2008
Location: France
Distribution: Slackware
Posts: 101

Rep: Reputation: 33
slackpkg+ delete packages without signature


This concerns especially users who have configured slackpkg with DELALL=off

Recents versions of slackpkg+ delete packages without signature in TEMP

Code is :
Code:
  if [ -e $TEMP ];then
    # clean cache from packages without gpg signature
    find $TEMP ! -type d|sort|tac|awk '{if($1~/\.asc$/)f[$1]++;if($1~/\.t.z$/ && !f[$1".asc"])print $1}' |xargs -r rm -f
  fi
Since I don't see it in the changelog, I can't say if this is an involountery import from a test version or if it's here on purpose.
From my backups, it seems this behavior appeared in 1.7.6-noarch-4mt.
If it's the "bad package" in the changelog, I would never guess it means that.
This has no opt-out mechanism.

@zerouno
If it's here on purpose, I don't understand why.
I see another thread which talks of "cache invalidation" in the dev branch ? Well, this would be a violent invalidation imho.

There can be packages here without signatures for historical reasons, put here manually or by other tools.
When configuring DELALL=off, slackpkg let the user do the cleaning in TEMP and it would be nice that slackpkg+ can keep the same behavior.
If this requires too much work, this cleaning should at least be limited to SLACKPKGPLUS_* directories.

Thanks for reading.

Last edited by regdub; 06-12-2021 at 03:14 AM.
 
Old 01-21-2022, 04:22 AM   #2
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 983

Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
sorry for no reply.
I don't follow regularly the entire forum.

I forgot to report it in changelog.

I've not considered some things.

The purpose of this code is to remove partial/broken downloads.

Help me to understand which files need to be not removed to fix it:

1) repository that has not gpg support
2) ????

the /var/cache/packages should be used just for slackpkg. Do you know some other tools using it?
 
Old 01-21-2022, 09:49 PM   #3
regdub
Member
 
Registered: Apr 2008
Location: France
Distribution: Slackware
Posts: 101

Original Poster
Rep: Reputation: 33
Sorry for not having post a link in the main thread and thanks for the explanation.

I use $TEMP for other packages.
I also cleaned up signatures of official packages in 2020, something I didn't do again.
Here, $TEMP is not on the system partition but on a data partition.

I saw your patch on the other thread, nice and thanks.
I'll continue there, maybe after sleeping.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Slackpkg upgrade-all returns 'no packages to upgrade' after slackpkg-update has downloaded files san2ban Slackware 8 11-01-2019 05:44 AM
slackpkg update fails to verify CHECKSUMS.md5 signature mralk3 Slackware - ARM 23 12-02-2015 09:57 AM
Slackpkg wrong gpg signature on packages lordbone Slackware 2 11-25-2015 12:42 PM
[SOLVED] Slackpkg update error - gpg signature on cheksum stoa Slackware 2 06-13-2015 05:28 PM
Does slackpkg delete packages that have been removed from Slackware? spudgunner Slackware 7 07-22-2011 07:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration