Jump to content


Photo

RFC: add item in update process


  • Please log in to reply
22 replies to this topic

#1 Pedro_Newbie

  • Senior Member
  • 4,631 posts

+225
Excellent

Posted 28 August 2014 - 19:25

I would like to suggest to add an item in the list when you want to preform an update, now the list is

1 Update and reboot

2 Update and ask to reboot

3 Update channel list only

4 Show latest commits on sourceforge

5 Cancel

6 Show disclaimer

 

I would like an extra item (which is if I'm not mistaken executed already during the update process) which perform the command opkg list-upgradable

The list could be e.g.:

1 Update and reboot

2 Update and ask to reboot

3 Update channel list only

4 Show latest commits on sourceforge

5 Cancel

6 Show disclaimer

7 Show packages which will be updated

 

Or something similar, also the sequence of the numbers could be altered of course.

 

I think this would be a nice addition to the update process


Edited by Pedro_Newbie, 28 August 2014 - 19:26.


Re: RFC: add item in update process #2 littlesat

  • PLi® Core member
  • 56,273 posts

+691
Excellent

Posted 28 August 2014 - 20:01

Any idea how create this list ;)


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: RFC: add item in update process #3 Pedro_Newbie

  • Senior Member
  • 4,631 posts

+225
Excellent

Posted 28 August 2014 - 20:16

You mean self.CMD_UPGRADE_LIST: from Ipkg.py?

 

Just in the form of the list: Show latest commits on sourceforge, scrollable (if necessary)



Re: RFC: add item in update process #4 jpuigs

  • Senior Member
  • 1,143 posts

+32
Good

Posted 28 August 2014 - 22:34

Pedro, Opttion 7 means the same as if we do on a telnet session  'opkg list-upgradable'   ???


Enigma is getting old....

 

Spoiler

Re: RFC: add item in update process #5 Pedro_Newbie

  • Senior Member
  • 4,631 posts

+225
Excellent

Posted 29 August 2014 - 05:29

Yes

Re: RFC: add item in update process #6 littlesat

  • PLi® Core member
  • 56,273 posts

+691
Excellent

Posted 29 August 2014 - 06:42

Good idea...

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: RFC: add item in update process #7 Pedro_Newbie

  • Senior Member
  • 4,631 posts

+225
Excellent

Posted 29 August 2014 - 15:02

I was thinking something like the output of the plugin from 2boom

f5adnd.jpg

 

Attached Files



Re: RFC: add item in update process #8 littlesat

  • PLi® Core member
  • 56,273 posts

+691
Excellent

Posted 29 August 2014 - 15:17

Should we add all these revision data saying in fact nothing... Or isn't it better to simply list the modules...?

 

i can also rename "Show latest commits on sourceforge" to something like "Show latest changes" and put the opkg packages at the "first" page there...


Edited by littlesat, 29 August 2014 - 15:19.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: RFC: add item in update process #9 Pedro_Newbie

  • Senior Member
  • 4,631 posts

+225
Excellent

Posted 29 August 2014 - 16:00

All the revision data a is not necessary (what I'm concerned) but it is the standard output from opkg list-upgradable.

The output of opkg list-upgradable | cut -d " " -f1 would be fine I suppose, but maybe other members have some thought about it?

 

It could be incorporated with the option you mention as long as it is clear what is really updated and what is the sourceforge part (which don't have to lead to an update package)



Re: RFC: add item in update process #10 littlesat

  • PLi® Core member
  • 56,273 posts

+691
Excellent

Posted 30 August 2014 - 12:03

That ipk is extreme overkill...

The option could be added by opening some listbox viewer that shows the contence of self.ipkg.getFetchedList().... This could be a few lines... But this morning I upgraded my development box so it will not be made today...


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: RFC: add item in update process #11 littlesat

  • PLi® Core member
  • 56,273 posts

+691
Excellent

Posted 30 August 2014 - 12:38

I did prepare a new SoftwareUpdate.py with this feature included. I only not able to test it now.... (see attachment).

Attached Files


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: RFC: add item in update process #12 blzr

  • PLi® Core member
  • 2,269 posts

+118
Excellent

Posted 30 August 2014 - 13:43

crash...
Traceback (most recent call last):
  File "/usr/lib/enigma2/python/mytest.py", line 192, in processDelay
    callback(*retval)
  File "/usr/lib/enigma2/python/Screens/SoftwareUpdate.py", line 265, in startActualUpgrade
    text += "\n" + i
TypeError: cannot concatenate 'str' and 'list' objects
maybe something like this:
text += "\n" + str(i)

True sarcasm doesn't need green font...

Re: RFC: add item in update process #13 littlesat

  • PLi® Core member
  • 56,273 posts

+691
Excellent

Posted 30 August 2014 - 13:54

That does also not work....

Could you change the add to the string to a print i.... And forward me the results from the console...

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: RFC: add item in update process #14 blzr

  • PLi® Core member
  • 2,269 posts

+118
Excellent

Posted 30 August 2014 - 14:02

That does also not work....

hmm, here it worked /well, sort of...;)/

Attached Files


Edited by blzr, 30 August 2014 - 14:03.

True sarcasm doesn't need green font...

Re: RFC: add item in update process #15 littlesat

  • PLi® Core member
  • 56,273 posts

+691
Excellent

Posted 30 August 2014 - 14:14

With str(i)?

I think we should not beed that git stuff.... Just the packages.... :)

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: RFC: add item in update process #16 blzr

  • PLi® Core member
  • 2,269 posts

+118
Excellent

Posted 30 August 2014 - 14:22

With str(i)?

yep

I think we should not beed that git stuff.... Just the packages.... :)

agree...

output from console w/ print i
executing opkg list-upgradable
poll: unhandled POLLERR/HUP/NVAL for fd 58(16)
[EPGC] nownext finished(1409404585)
data: libdvdread4 - 5.0+git228+87f369d-r0 - 5.0+git229+874873d-r0
...
['libdvdread4', '5.0+git228+87f369d-r0', '5.0+git229+874873d-r0']
...

Edited by blzr, 30 August 2014 - 14:23.

True sarcasm doesn't need green font...

Re: RFC: add item in update process #17 littlesat

  • PLi® Core member
  • 56,273 posts

+691
Excellent

Posted 30 August 2014 - 14:59

I already found a not upgraded box here.... ;) The list also needs to be sorted....

 

http://sourceforge.n...3e88454e4073e7/


Edited by littlesat, 30 August 2014 - 15:00.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: RFC: add item in update process #18 Pedro_Newbie

  • Senior Member
  • 4,631 posts

+225
Excellent

Posted 30 August 2014 - 15:44

Just restored an older backup and tested it. It looks fine.
28svuqu.png  fmorpv.png

Re: RFC: add item in update process #19 Pedro_Newbie

  • Senior Member
  • 4,631 posts

+225
Excellent

Posted 30 August 2014 - 20:57

@ Littlesat
Your latest commit: Use new title option from TextBox when displaying packages to upgrade produces a green screen

executing opkg  list-upgradable
poll: unhandled POLLERR/HUP/NVAL for fd 60(16)
data: enigma2-plugin-extensions-backupsuite - 1.0+git19+5f5f287-r0 - 1.0+git22+7389f9d-r0

poll: unhandled POLLERR/HUP/NVAL for fd 60(16)
action ->  WizardActions down
action ->  DirectionActions downUp
unknown action DirectionActions/downUp! typo in keymap?
action ->  WizardActions down
action ->  DirectionActions downUp
unknown action DirectionActions/downUp! typo in keymap?
action ->  WizardActions down
action ->  DirectionActions downUp
unknown action DirectionActions/downUp! typo in keymap?
action ->  WizardActions down
action ->  DirectionActions downUp
unknown action DirectionActions/downUp! typo in keymap?
action ->  WizardActions ok
Screen <class 'Screens.TextBox.TextBox'>(('enigma2-plugin-extensions-backupsuite', 'Packages to update'), {}): <type 'exceptions.TypeError'>
Traceback (most recent call last):
  File "/usr/lib/enigma2/python/mytest.py", line 226, in create
    return screen(self, *arguments, **kwargs)
TypeError: __init__() takes at most 3 arguments (4 given)
Traceback (most recent call last):
  File "/usr/lib/enigma2/python/mytest.py", line 192, in processDelay
    callback(*retval)
  File "/usr/lib/enigma2/python/Screens/SoftwareUpdate.py", line 266, in startActualUpgrade
    self.session.openWithCallback(boundFunction(self.ipkgCallback, IpkgComponent.EVENT_DONE, None), TextBox, text, _("Packages to update"))
  File "/usr/lib/enigma2/python/mytest.py", line 294, in openWithCallback
    dlg = self.open(screen, *arguments, **kwargs)
  File "/usr/lib/enigma2/python/mytest.py", line 305, in open
    dlg.isTmp = True
AttributeError: 'NoneType' object has no attribute 'isTmp'
(PyObject_CallObject(<bound method Session.processDelay of <__main__.Session instance at 0x163a3a0>>,()) failed)
getResolvedKey config.plugins.crashlogautosubmit.sendAnonCrashlog failed !! (Typo??)
getResolvedKey config.plugins.crashlogautosubmit.addNetwork failed !! (Typo??)
getResolvedKey config.plugins.crashlogautosubmit.addWlan failed !! (Typo??)
]]>
		</enigma2crashlog>
	</crashlogs>
</openpli>


Re: RFC: add item in update process #20 littlesat

  • PLi® Core member
  • 56,273 posts

+691
Excellent

Posted 30 August 2014 - 21:24

Not here.... did you also alter TextBox.py?


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users