Jump to content


Photo

Protect py files against SoftwareUpdate


  • Please log in to reply
5 replies to this topic

#1 canymed112

  • Member
  • 23 posts

0
Neutral

Posted 23 March 2013 - 18:51

Hi

Is there a possibility the protect my modified py files from the screens and components directory,
that they will not be overwritten by an update?

greets
canymed112

Edited by canymed112, 23 March 2013 - 18:53.

ET9200, OpenPli 3.0, 3.8.7


Re: Protect py files against SoftwareUpdate #2 Happysat

  • Senior Member
  • 697 posts

+43
Good

Posted 23 March 2013 - 19:22

Put the wanted packages on hold or build a custom script to replace the files after online update.

Edited by Happysat, 23 March 2013 - 19:22.

Octagon SF8008 / TBS5530  DVB-S2/T2 T-85/1.50Mtr/3x90cm (53e 52e 51,5e 28e 25,9e 23e 19e 13e 9e 4e 1w 5w 14w)


Re: Protect py files against SoftwareUpdate #3 canymed112

  • Member
  • 23 posts

0
Neutral

Posted 23 March 2013 - 19:40

I tried that already but it shows me that it is already installed in enigma.list because thats are system files.
I don't want to install the files after every online update, I just want to make them resistant against an update.

Somebody told me thats not possible with a script, is that right?

ET9200, OpenPli 3.0, 3.8.7


Re: Protect py files against SoftwareUpdate #4 ims

  • PLi® Core member
  • 13,937 posts

+215
Excellent

Posted 23 March 2013 - 20:03

I am using software manager - after each update I am making restore and restart gui
Kdo nic nedělá, nic nezkazí!

Re: Protect py files against SoftwareUpdate #5 hemispherical1

  • Senior Member
  • 1,596 posts

+49
Good

Posted 24 March 2013 - 06:55

opkg is supposed to respect the hold flag, ignoring changes to the flagged package. Run opkg from telnet/ssh to get the "short" version or google words like "opkg flag hold" etc...

Personally I just copy my personally edited files (skin, etc) to /home/root/files & copy them back into place after an upgrade. Actually I use a script to:

a. Backup current Image (handy if the update breaks something)
b. Upgrade the image & log changes
c. Copy my files back in place

The script looks something like:

#!/bin/sh																								   
build-nfi-image.sh																						  
opkg update																								 
opkg upgrade > /home/root/`date +%m_%d_%y`-update.log													   
rm /usr/lib/enigma2/python/Components/Converter/ClockToText.pyo											
cp /home/root/files/ClockToText.py /usr/lib/enigma2/python/Components/Converter							
mv /share/enigma2/keymap.xml /share/enigma2/keymap.xml~													 
cp /home/root/files/keymap.xml /share/enigma2															    									 
mv /share/enigma2/PLi-HD/skin.xml /share/enigma2/PLi-HD/skin.xml~										   
cp /home/root/files/PLi-HD.skin.xml /share/enigma2/PLi-HD/skin.xml										   														   
reboot

--
hemi

Re: Protect py files against SoftwareUpdate #6 canymed112

  • Member
  • 23 posts

0
Neutral

Posted 24 March 2013 - 21:05

Thanks a lot, so works it perfect!

ET9200, OpenPli 3.0, 3.8.7



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users