[fixed 3.7.9] mintUpdate 3.2.2 - incorrect package levelling

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

[fixed 3.7.9] mintUpdate 3.2.2 - incorrect package levelling

Postby emorrp1 on Sun Jun 21, 2009 9:29 am

When the mint elyssa repos are down, the dangerous (lvl 4/5) packages from Ubuntu (the -updates repo) are incorrectly marked as lvl 3, see viewtopic.php?f=34&t=26836&p=162431#p162431 Unknown whether this affects felicia+, can anyone confirm for these mints?
If you have a question that has been answered and solved, then please edit your original post and put a [SOLVED] at the end of your subject header
Hint - use a google search including the search term site:forums.linuxmint.com
emorrp1
Level 8
Level 8
 
Posts: 2322
Joined: Thu Feb 26, 2009 8:58 pm

Linux Mint is funded by ads and donations.
 

Re: mintUpdate 3.2.2 - incorrect package levelling

Postby Husse on Mon Jun 22, 2009 5:33 am

mintUpdate first downloads a list of security levels
/usr/lib/linuxmint/mintUpdate/tmp/rules
Everything not mentioned there gets level 3
I just checked and the rules file was empty
I then started mintUpdate and the rules file had the proper content
So updating while our repos are down could be a bit hazardous
I would not call it a bug, but I'll ask Clem to modify mintUpdate so we don't get an empty file
Thanks for letting us know
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19710
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Re: mintUpdate 3.2.2 - incorrect package levelling

Postby emorrp1 on Sat Jul 11, 2009 8:22 am

Ok, so now I've had the chance to examine the source code, and confirm the same thing happens if you're simply not connected to the internet, and also in mintUpdate 3.7.7 (Gloria)

The issue is on line 322 of mintUpdate.py where the condition always evaluates to false, since an empty file is written on line 310, hence the else clause is always executed, removing the backup copy of the rules file too.

Steps to reproduce:
1) ensure correct connection to internet
2) run mintUpdate, check the log has "++ Successfully downloaded new safety rules"... in it
3) verify the non-empty files /usr/lib/linuxmint/mintUpdate/tmp/rules and /usr/lib/linuxmint/mintUpdate/rules.old
4) disconnect the internet
5) run mintUpdate, check the log has "-- Failed to download new safety rules:"... in it, but not "-- Could not download safety rules"
6) verify the empty files above.
If you have a question that has been answered and solved, then please edit your original post and put a [SOLVED] at the end of your subject header
Hint - use a google search including the search term site:forums.linuxmint.com
emorrp1
Level 8
Level 8
 
Posts: 2322
Joined: Thu Feb 26, 2009 8:58 pm

Re: [confirmed] mintUpdate 3.2.2 - incorrect package levelling

Postby emorrp1 on Tue Jul 14, 2009 9:08 am

If you have a question that has been answered and solved, then please edit your original post and put a [SOLVED] at the end of your subject header
Hint - use a google search including the search term site:forums.linuxmint.com
emorrp1
Level 8
Level 8
 
Posts: 2322
Joined: Thu Feb 26, 2009 8:58 pm

Re: [confirmed] mintUpdate 3.2.2 - incorrect package levelling

Postby Husse on Wed Jul 15, 2009 5:38 am

I have a feeling Clem has been on to this...
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19710
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Re: [confirmed] mintUpdate 3.2.2 - incorrect package levelling

Postby emorrp1 on Wed Jul 15, 2009 8:49 am

indeed, it was clem who filed that bug report
If you have a question that has been answered and solved, then please edit your original post and put a [SOLVED] at the end of your subject header
Hint - use a google search including the search term site:forums.linuxmint.com
emorrp1
Level 8
Level 8
 
Posts: 2322
Joined: Thu Feb 26, 2009 8:58 pm


Return to Newbie Questions

Who is online

Users browsing this forum: Webtest and 53 guests