[Pharo-project] programmatically update a Pharo image
Hello, Is there a 'magic' command to programmatically update and load the last version of a Pharo 1.2 core image?
2010/9/1 Cyrille Delaunay <cy.delaunay@gmail.com>
Hello,
Is there a 'magic' command to programmatically update and load the last version of a Pharo 1.2 core image? ç
Check Utilities updateFromServer
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
soon obsolete :) But for now ok :) soon UpdateStreamer new updateFromServer
Hello,
Is there a 'magic' command to programmatically update and load the last version of a Pharo 1.2 core image? ç
Check Utilities updateFromServer
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Ok, thanks :) The problem now is that 'Utilities updateFromServer' open a window to inform the user, waiting for the user to click on ok. In my case, I want to use such a method to update the image from a script (for example launched from hudson). But this 'inform' window stop the execution of the script 2010/9/1 Stéphane Ducasse <stephane.ducasse@inria.fr>
soon obsolete :) But for now ok :) soon UpdateStreamer new updateFromServer
Hello,
Is there a 'magic' command to programmatically update and load the last
version of a Pharo 1.2 core image?
ç
Check Utilities updateFromServer
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
2010/9/1 Cyrille Delaunay <cy.delaunay@gmail.com>
Ok, thanks :) The problem now is that 'Utilities updateFromServer' open a window to inform the user, waiting for the user to click on ok. In my case, I want to use such a method to update the image from a script (for example launched from hudson). But this 'inform' window stop the execution of the script
Once I incisted in putting DummyUIManager in core...I got it :) see http://code.google.com/p/pharo/issues/detail?id=2069 not sure how to use it, thus. cheers Mariano
2010/9/1 Stéphane Ducasse <stephane.ducasse@inria.fr>
soon obsolete :)
But for now ok :) soon UpdateStreamer new updateFromServer
Hello,
Is there a 'magic' command to programmatically update and load the last
version of a Pharo 1.2 core image?
ç
Check Utilities updateFromServer
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Since you need a specific behavior for your application you could mimic the code here in #readServerUpdatesThrough: maxNumber saveLocally: saveLocally updateImage: updateImage, without sending message to ... UIManager default chooseFrom: #('Stop looking' 'Try next server') title: .... Or maybe decouple it from the view, and integrate it into Pharo. Fernando On Sep 1, 2010, at 4:05 PM, Mariano Martinez Peck wrote:
2010/9/1 Cyrille Delaunay <cy.delaunay@gmail.com> Ok, thanks :) The problem now is that 'Utilities updateFromServer' open a window to inform the user, waiting for the user to click on ok. In my case, I want to use such a method to update the image from a script (for example launched from hudson). But this 'inform' window stop the execution of the script
Once I incisted in putting DummyUIManager in core...I got it :) see
http://code.google.com/p/pharo/issues/detail?id=2069
not sure how to use it, thus.
cheers
Mariano
2010/9/1 Stéphane Ducasse <stephane.ducasse@inria.fr>
soon obsolete :) But for now ok :) soon UpdateStreamer new updateFromServer
Hello,
Is there a 'magic' command to programmatically update and load the last version of a Pharo 1.2 core image? ç
Check Utilities updateFromServer
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
<ATT00001..txt>
Cyrille Delaunay wrote:
Ok, thanks :) The problem now is that 'Utilities updateFromServer' open a window to inform the user, waiting for the user to click on ok. In my case, I want to use such a method to update the image from a script (for example launched from hudson). But this 'inform' window stop the execution of the script
Try: [Utilities updateFromServer] valueSuppressingAllMessages. FWIW, I used to run this update on my Hudson server, but I eventually disabled it, in favour of manually updating to the latest image download from https://gforge.inria.fr/frs/?group_id=1299. There was always some issue that came up, that required manual intervention. Now that more people are doing automated builds, you may have a different experience. With the new link at: http://www.pharo-project.org/pharo-download/unstable-core it should be possible to automate the image update, but I've not tried yet.
thanks yanni for pharo and moose we want to have automated builds. This will kick our ass so I'm sure that the system will be better after :) Stef On Sep 1, 2010, at 5:39 PM, Yanni Chiu wrote:
Cyrille Delaunay wrote:
Ok, thanks :) The problem now is that 'Utilities updateFromServer' open a window to inform the user, waiting for the user to click on ok. In my case, I want to use such a method to update the image from a script (for example launched from hudson). But this 'inform' window stop the execution of the script
Try:
[Utilities updateFromServer] valueSuppressingAllMessages.
FWIW, I used to run this update on my Hudson server, but I eventually disabled it, in favour of manually updating to the latest image download from https://gforge.inria.fr/frs/?group_id=1299. There was always some issue that came up, that required manual intervention. Now that more people are doing automated builds, you may have a different experience.
With the new link at: http://www.pharo-project.org/pharo-download/unstable-core
it should be possible to automate the image update, but I've not tried yet.
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
I have the impression that valueSuppressingAllMessages capture ProvideAnswerNotification but It is not clear to me that he works for ProgressInitiationException which is used by 'Downloading updates' displayProgressAt: World activeHand position from: 0 to: urls size during: do you have any experience with that? I will try but who knows :) Stef On Sep 1, 2010, at 5:39 PM, Yanni Chiu wrote:
Cyrille Delaunay wrote:
Ok, thanks :) The problem now is that 'Utilities updateFromServer' open a window to inform the user, waiting for the user to click on ok. In my case, I want to use such a method to update the image from a script (for example launched from hudson). But this 'inform' window stop the execution of the script
Try:
[Utilities updateFromServer] valueSuppressingAllMessages.
FWIW, I used to run this update on my Hudson server, but I eventually disabled it, in favour of manually updating to the latest image download from https://gforge.inria.fr/frs/?group_id=1299. There was always some issue that came up, that required manual intervention. Now that more people are doing automated builds, you may have a different experience.
With the new link at: http://www.pharo-project.org/pharo-download/unstable-core
it should be possible to automate the image update, but I've not tried yet.
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
what I feared ['You should not see me....' displayProgressAt: World activeHand position from: 0 to: 100 during: [:bar | 1 to: 100 by: 10 do: [:x | bar value: x. (Delay forMilliseconds: 200) wait]]]valueSuppressingAllMessages and we see it. So I open a ticket to make sure that we will not forget :) Stef On Sep 1, 2010, at 6:07 PM, Stéphane Ducasse wrote:
I have the impression that valueSuppressingAllMessages capture ProvideAnswerNotification but It is not clear to me that he works for ProgressInitiationException which is used by 'Downloading updates' displayProgressAt: World activeHand position from: 0 to: urls size during:
do you have any experience with that?
I will try but who knows :)
Stef
On Sep 1, 2010, at 5:39 PM, Yanni Chiu wrote:
Cyrille Delaunay wrote:
Ok, thanks :) The problem now is that 'Utilities updateFromServer' open a window to inform the user, waiting for the user to click on ok. In my case, I want to use such a method to update the image from a script (for example launched from hudson). But this 'inform' window stop the execution of the script
Try:
[Utilities updateFromServer] valueSuppressingAllMessages.
FWIW, I used to run this update on my Hudson server, but I eventually disabled it, in favour of manually updating to the latest image download from https://gforge.inria.fr/frs/?group_id=1299. There was always some issue that came up, that required manual intervention. Now that more people are doing automated builds, you may have a different experience.
With the new link at: http://www.pharo-project.org/pharo-download/unstable-core
it should be possible to automate the image update, but I've not tried yet.
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
cyrille I'm about to publish UpdateStreamer which will be silent or verbose and does what you want. Stef On Sep 1, 2010, at 2:54 PM, Cyrille Delaunay wrote:
Hello,
Is there a 'magic' command to programmatically update and load the last version of a Pharo 1.2 core image? _______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Cool :) 2010/9/1 Stéphane Ducasse <stephane.ducasse@inria.fr>
cyrille
I'm about to publish UpdateStreamer which will be silent or verbose and does what you want.
Stef
On Sep 1, 2010, at 2:54 PM, Cyrille Delaunay wrote:
Hello,
Is there a 'magic' command to programmatically update and load the last version of a Pharo 1.2 core image? _______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
I will soon need a tester :) Stef On Sep 1, 2010, at 4:51 PM, Cyrille Delaunay wrote:
Cool :)
2010/9/1 Stéphane Ducasse <stephane.ducasse@inria.fr> cyrille
I'm about to publish UpdateStreamer which will be silent or verbose and does what you want.
Stef
On Sep 1, 2010, at 2:54 PM, Cyrille Delaunay wrote:
Hello,
Is there a 'magic' command to programmatically update and load the last version of a Pharo 1.2 core image? _______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Hi cyrille I published a read to be tested version of UpdateStreamer. Please have a look this is in PharoTaskForces/Updater I'm a little class inspired heavily from Utilities that download update.list and launch update. you can tell me to update throw a given number of update or to be verbose. UpdateStreamer new beVerbose; updateFromServer This will update all the updates available and show up dialogs UpdateStreamer new beSilent; upToNumber: 13000; updateFromServer let me know if this is working. I tested it and it seems so. Once we are a bit more confident :), we can use it in pharo and nuke (yeah) Utilities. Stef
Both, updater and solution of yanni are doing what I was expecting. Thanks :) 2010/9/1 Stéphane Ducasse <stephane.ducasse@inria.fr>
Hi cyrille
I published a read to be tested version of UpdateStreamer. Please have a look this is in PharoTaskForces/Updater
I'm a little class inspired heavily from Utilities that download update.list and launch update.
you can tell me to update throw a given number of update or to be verbose.
UpdateStreamer new beVerbose; updateFromServer
This will update all the updates available and show up dialogs
UpdateStreamer new beSilent; upToNumber: 13000; updateFromServer
let me know if this is working. I tested it and it seems so. Once we are a bit more confident :), we can use it in pharo and nuke (yeah) Utilities.
Stef _______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
participants (5)
-
Cyrille Delaunay -
Fernando olivero -
Mariano Martinez Peck -
Stéphane Ducasse -
Yanni Chiu