Boost "slackpkg upgrade-all" performance
Talk is cheap, patch here: (against slackpkg-2.80.2-noarch-3)
Code:
--- /ext4/slackware_rsync/slackware64-current/slackware64/ap/slackpkg-2.80.2-noarch-3/usr/libexec/slackpkg/core-functions.sh 2009-07-27 09:33:49.000000000 +0800 Although I haven't tested it so much (I reverted two packages and "new slackpkg" can find them) but I think it would have no regressions. Any feedback is strongly welcome. |
You might want to send this to Piter Punk.
|
grissiom,
Are you updating from a local mirror, such as I do from my Slackware64 -current mirror; or are you updating via the internut (Great Chinese Firewall version)? I applied the patch and it took maybe 2 seconds for the line: Code:
Looking for packages to upgrade. Please wait... DONE the packages listed was there. And, yes, they are exactly the ones from the ChangeLog that I had not updated, minus my blacklist such as kernel. Thanks, and I too think you should send it to PiterPUNK. It's still his choice what to do, and probably won't happen until Slackware-13.0 comes out. |
Quote:
|
Quote:
Quote:
Quote:
|
Worked very well here!
Slackpkg was slow on my virtual machines especially, but after this patch it's a lot faster. Thanks! |
rsync doesn't have to go through the firewall, if you just use it local -- which I do
for everything where the files are important. Maybe you have better bandwidth in Beijing that I do in a village here in Dali. Heck, the phone wires coming in to my house to use the ADSL modem look like chicken intestines, so I doubt the copper quality is very good. And they're hung all over roofs, trees, etc. PiterPUNK most probably wouldn't submit any changes until after Slackware-13.0 anyway. Pat surely has a freeze on anything that's not broken, and important. Now you have niels.horn (also in PiterPUNK's area) using it with good results. PiterPUNK really does appreciate us using and submitting suggestions for slackpkg. |
Quote:
I am updating a desktop machine expecting to see the 8/20 thunderbird-2.0.0.23 patch from an LAN mirror via NFS. I replaced the 1 line (-) with the 5 lines (+) in /usr/libexec/slackpkg/core-functions.sh and got the following response. Code:
root@slacker:~# slackpkg upgrade-all |
Please post the output of:
Code:
diff -u /usr/libexec/slackpkg/core-functions.sh /usr/libexec/slackpkg/core-functions.sh~ |
Quote:
I'm running slackpkg-2.70.5-noarch-1, not slackpkg-2.80.2-noarch-3. My modified feedback is that it doesn't appear to work in the stock 12.2 slackpkg. |
Quote:
Quote:
|
Quote:
|
Hello Grissiom,
I've used your patch and I'd like to report that "slackpkg upgrade-all" detected correctly the new upgraded packages for my -current machine. And also, it was way much faster :) Thank you. |
Thanks grissiom, worked fine on current 32 and 64.
|
@ grissiom,
I'm sorry but it seems that your patch does not work for security updates to a stable release. In my case, I used mirror: http://slackware.osuosl.org/slackware-13.0/. Your patch failed to detect the 3 patches since release of 13.0 (namely, mozilla-firefox, seamonkey and seamonkey-solibs). Could the reason be that file PACKAGES.TXT is not updated for a stable release (it's rather patches/PACKAGES.TXT) contrary to -current? |
Quote:
|
Hello Grissiom,
I've upgraded the packages yesterday: I removed your patch and then slackpkg correctly showed the 3 packages to upgrade. Do you still want the result of "grep seamonkey-solibs /var/lib/slackpkg/pkglist"? If so, I'll post it tonight as I'm not at home at the moment :) |
@Grissiom,
Just another feedback: I am using the patched version on -current and that picked up the packages to upgrade. I have not patched SlackPkg on my 'stable' machine. |
Quote:
|
Quote:
|
grissiom,
I have replied twice, and both times I got some message about my token has expired and press the back button. There was nothing here, so I refreshed and posted again ... same result. I am too tired to focus correctly, so I will just post some output and you can evaluate it and we'll go from there tomorrow: Code:
root@silas64:~# slackpkg update |
Finally worked out a patch for this problem. But I have to admit that this patch is "stupid and ugly". So if anyone there have a better idea, please tell me.
The "patch": please edit your /usr/libexec/slackpkg/core-functions.sh around line 569 to something like this: Code:
568 ;; |
@Bruce Hill
I think you need to change your mirror as there are so many warnings ;) Thanks for your help anyway ;) |
Hello Grissiom,
Thank you for the new patch. I'll test it when the next 13.0 security update occurs. For the record, here are the data you requested: Code:
chris@darkstar ~ $ grep seamonkey-solibs /var/lib/slackpkg/pkglist |
Quote:
|
Hello Grissiom,
I tested your latest patch on Slackware 13.0 with the security update of 19th September. It works :) Thanks again. I hope it somehow will make it into a future version of slackpkg. |
All times are GMT -5. The time now is 10:18 AM. |