[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-kimageshop
Subject:    The resource bundle and resource md5 sums.
From:       Wolthera <griffinvalley () gmail ! com>
Date:       2014-12-23 15:34:14
Message-ID: CAN80MtFur==1R9rLkUmxxGM+NMrkAWOLL9Cj8eJOGqgwHkUFWA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


So, right now, the resource bundle uses md5 sums to figure out which preset
is part of it. However, these md5sums, which are stored in the manifest.xml
are bogus.
I do not know why they are bogus, but I am hoping to implement a bit of
functionality that is half work-around and half kinda necessary anyway:

First, Krita always installs all bundles upon start-up. I suggest we us
this chance for the bundle to collect all the md5sums of the resources it
installs.

Then, we get it to check it against all the manifest md5sums, when these
are mismatched, we tell the user "Ah, it seems that these brushes have
mismatching md5sums with the bundle's manifest. They may have gotten
corrupted udring download:
<list of brushes>"

That way, the user actually can see the use of these weird numbery things.

Then, when Krita deinstalls a bundle, it'll use the md5sums of what it
knows it installed instead of the list in the manifest.

Does this sound like a plan? We can then later figure out why the manifest
md5sums are nonsense.

-- 
Wolthera

[Attachment #5 (text/html)]

<div dir="ltr"><div><div><div><div><div><div><div>So, right now, the resource bundle \
uses md5 sums to figure out which preset is part of it. However, these md5sums, which \
are stored in the manifest.xml are bogus.<br></div>I do not know why they are bogus, \
but I am hoping to implement a bit of functionality that is half work-around and half \
kinda necessary anyway:<br><br></div>First, Krita always installs all bundles upon \
start-up. I suggest we us this chance for the bundle to collect all the md5sums of \
the resources it installs.<br><br></div>Then, we get it to check it against all the \
manifest md5sums, when these are mismatched, we tell the user &quot;Ah, it seems that \
these brushes have mismatching md5sums with the bundle&#39;s manifest. They may have \
gotten corrupted udring download:<br></div>&lt;list of \
brushes&gt;&quot;<br><br></div>That way, the user actually can see the use of these \
weird numbery things.<br><br></div>Then, when Krita deinstalls a bundle, it&#39;ll \
use the md5sums of what it knows it installed instead of the list in the \
manifest.<br><br></div>Does this sound like a plan? We can then later figure out why \
the manifest md5sums are nonsense.<br \
clear="all"><div><div><div><div><div><div><div><div><br>-- <br><div \
class="gmail_signature">Wolthera</div> \
</div></div></div></div></div></div></div></div></div>



_______________________________________________
Krita mailing list
kimageshop@kde.org
https://mail.kde.org/mailman/listinfo/kimageshop


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic