WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: sce-update md5.txt query  (Read 2939 times)

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
sce-update md5.txt query
« on: February 15, 2016, 08:14:04 PM »
Update checking an SCE with a missing md5.txt file completes the update check but does not flag. The md5.txt file does not appear necessary for the update check, but should it's absence be flagged to notify the user?

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: sce-update md5.txt query
« Reply #1 on: February 15, 2016, 11:35:31 PM »
We could do that just to make sure the sce file is not corrupt and require re-import just to be certain.

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: sce-update md5.txt query
« Reply #2 on: February 16, 2016, 04:54:14 PM »
Thanks for response, i think the md5 integrity check during  sce-update  is a good idea. The SCE gets flagged for update if either the md5sum doesn't match the SCE.md5.txt or is missing altogether, with a note during either 'SCE update check...' scrolling or in the '(v)iew package updates' section.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: sce-update md5.txt query
« Reply #3 on: February 17, 2016, 02:29:48 PM »
I will save this until after the bugfix RC being uploaded now, as it will be a somewhat involved change.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: sce-update md5.txt query
« Reply #4 on: February 17, 2016, 04:30:29 PM »
Now uploaded to RC.  The 'sce-udpate -a' option does not check for this if the debinx data is current.  Of course, manual tampering with the SCE directory is not supported, but if the OLDDEBINX and NEWDEBINX don't match on 'sce-update -a' or an individual SCE is chosen for update, there must be a valid SCE.md5.txt file or a re-import will occur.  And this is echoed to /tmp/updateavailable. 

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: sce-update md5.txt query
« Reply #5 on: February 19, 2016, 04:43:57 AM »
Deleting an md5.txt file for testing flagged it for update, despite no other library updates required, nice.

Purposely altering the md5.txt file contents (changed one digit) also flagged it, very nice.

The only feedback is could the md5 check occur first in the check cycle, as it may not be necessary to check library updates. For example, xorg-intel takes several minutes to update check all libraries but a failed md5 check takes <1 second to determine whether re-import is necessary. Checking library updates seems irrelevant at that point as the SCE will need to be re-imported fresh anyway.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: sce-update md5.txt query
« Reply #6 on: February 19, 2016, 10:26:00 AM »
Makes sense, will be in the next RC I will upload shortly.

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: sce-update md5.txt query
« Reply #7 on: February 20, 2016, 11:08:59 PM »
Just re-tested in latest RC, dCore-jessie:2016.02.19.16.43, notes:

1. Altered md5 file, update check completes almost immediately. Everything works as expected when checking the exension with  sce-update  , but not when running  sce-update -c  , provides view package updates option but it does not display any output, just exits:
Code: [Select]
sce-update -c
.
.
xorg-intel
 
Press Enter to update check above SCE(s), (q)uit to exit:
 
Checking xorg-intel.sce...
         xorg-intel update check...
 
Update check completed.
 
xorg-intel
 
Press Enter to view package updates, Ctrl-C aborts: v
tc@box:/mnt/sdb4/tce/sce$

Running  sce-update  then checking xorg-intel, check is quick and everything works as expected:
Code: [Select]
sce-update
.
.
xorg-intel
 
Press Enter to update check above SCE(s), (q)uit to exit:
 
Checking xorg-intel.sce...
         xorg-intel update check...
 
Update check completed.
 
xorg-intel
 
Press Enter to update above SCE(s), (v)iew package updates, Ctrl-C aborts: v
 
xorg-intel updates:
xorg-intel did not pass the md5sum check, needs re-importing..
 
 
Press Enter to proceed with updates, Ctrl-C aborts:

2. When booting system get extension loading error, something like 'md5sum error xorg-intel, exiting..', Some sort of error is expected, but it loads anyway despite the error. Wouldn't this be a concern if the SCE was either corrupt or maliciously altered.

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: sce-update md5.txt query
« Reply #8 on: February 21, 2016, 02:57:06 AM »
Nevermind issue #1 above, can't read my own instructions (used ' v ' instead of Enter).

Darn scripts are so Enter friendly now :)

Just query #2 outstanding, thanks.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: sce-update md5.txt query
« Reply #9 on: February 21, 2016, 08:03:15 AM »
Ok, should be fixed in the next RC.

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: sce-update md5.txt query
« Reply #10 on: February 22, 2016, 12:03:28 AM »
Looked at the script change but don't understand. Running latest dCore-jessie:2016.02.21.21.07. Altered md5sum file with xorg-intel. At boot, xorg-intel loads, then other extensions load, then get xorg-intel md5sum exiting error. But xorg-intel is already loaded and i boot into graphics anyway. No change in behaviour since previous post.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: sce-update md5.txt query
« Reply #11 on: February 22, 2016, 11:03:42 AM »
Should be fixed in next RC.  The loops of .dep files were the issue.   Now if the main sce or anything in it's .dep are bad md5, then neither the main sce or it's deps get loaded with that sce-load session.  However, it's deps that don't have a bad md5 can be loaded by themselves or as part of another dep file.  That is the most logical way to do it.

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: sce-update md5.txt query
« Reply #12 on: February 23, 2016, 01:15:45 AM »
Running latest, dCore-jessie:2016.02.22.12.22. Altering the .md5.txt file contents prevented the SCE from loading at boot. Minor cosmetic issue, the error message outputs a double slash, something like sce//dillo.sce. However, removing the md5.txt file from the /sce directory allowed the extension to load normally without error at boot, so something still seems amiss, thanks.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: sce-update md5.txt query
« Reply #13 on: February 23, 2016, 05:41:47 AM »
Ok, a missing md5.txt is a simple check I can put in.

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: sce-update md5.txt query
« Reply #14 on: February 24, 2016, 06:56:14 PM »
Updated to latest RC, unattended reboot and wondered why Dillo didn't load...missing md5.txt file issue resolved, thanks  :)