Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Update using teacup
$ teacup list --only newer
entity      name             version        platform
----------- ---------------- -------------- ----------------
application base-tcl-thread  8.5.2.0.284767 macosx-universal
application base-tk-thread   8.5.2.0.284767 macosx-universal
package     jpeg             0.3.3          tcl
package     ldap             1.6.9          tcl
package     math::bigfloat   2.0.1          tcl
package     textutil::string 0.7.1          tcl
package     tiff             0.2.1          tcl
package     tls              1.6            macosx-universal
package     uevent           0.2            tcl
----------- ---------------- -------------- ----------------
9 entities found

Is there an *easy* way of updating all those without doing it one at a
time? Is there a feature in teacup I am overlooking?

Robert

Report this thread to moderator Post Follow-up to this message
Old Post
Robert Hicks
03-30-08 12:28 AM


Re: Update using teacup
On Mar 30, 1:22=A0am, Robert Hicks <sigz...@gmail.com> wrote:
> $ teacup list --only newer
> entity =A0 =A0 =A0name =A0 =A0 =A0 =A0 =A0 =A0 version =A0 =A0 =A0 =A0plat=[/color
]
form
> ----------- ---------------- -------------- ----------------
> application base-tcl-thread =A08.5.2.0.284767 macosx-universal
> application base-tk-thread =A0 8.5.2.0.284767 macosx-universal
> package =A0 =A0 jpeg =A0 =A0 =A0 =A0 =A0 =A0 0.3.3 =A0 =A0 =A0 =A0 =A0tcl
> package =A0 =A0 ldap =A0 =A0 =A0 =A0 =A0 =A0 1.6.9 =A0 =A0 =A0 =A0 =A0tcl
> package =A0 =A0 math::bigfloat =A0 2.0.1 =A0 =A0 =A0 =A0 =A0tcl
> package =A0 =A0 textutil::string 0.7.1 =A0 =A0 =A0 =A0 =A0tcl
> package =A0 =A0 tiff =A0 =A0 =A0 =A0 =A0 =A0 0.2.1 =A0 =A0 =A0 =A0 =A0tcl
> package =A0 =A0 tls =A0 =A0 =A0 =A0 =A0 =A0 =A01.6 =A0 =A0 =A0 =A0 =A0 =A0=[/color
]
macosx-universal
> package =A0 =A0 uevent =A0 =A0 =A0 =A0 =A0 0.2 =A0 =A0 =A0 =A0 =A0 =A0tcl
> ----------- ---------------- -------------- ----------------
> 9 entities found
>
> Is there an *easy* way of updating all those without doing it one at a
> time? Is there a feature in teacup I am overlooking?
>
> Robert

You're right, [teacup update] is even documented as including [teacup
list --only unknown], which means "Everything I carefully left out so
far" ;-). So it's easy to be either ultra-thin or ultra-fat, but not
in between... If you enter a feature request asking for a --only flag
to [teacup update], I'll support it !

-Alex


Report this thread to moderator Post Follow-up to this message
Old Post
Alexandre Ferrieux
03-30-08 10:16 AM


Re: Update using teacup
Alexandre Ferrieux wrote:
> You're right, [teacup update] is even documented as including [teacup
> list --only unknown], which means "Everything I carefully left out so
> far" ;-). So it's easy to be either ultra-thin or ultra-fat, but not
> in between... If you enter a feature request asking for a --only flag
> to [teacup update], I'll support it !

Or you could wrap a Tcl script around teacup that gets the output from
'teacup list' (yes, it's available in an easy-to-parse form if you ask
nicely) and then feeds the results through 'teacup install'. After all,
the documentation for 'teacup update' basically lists what it's doing
anyway, so you should be able to figure out how to adapt...

(Alas, it won't be as efficient as 'teacup update' so it is worth
pursuing the extra options.)

Donal.

Report this thread to moderator Post Follow-up to this message
Old Post
Donal K. Fellows
03-31-08 11:18 AM


Re: Update using teacup
On Mar 31, 10:06 am, "Donal K. Fellows"
<donal.k.fell...@manchester.ac.uk> wrote:
> Alexandre Ferrieux wrote: 
>
> Or you could wrap a Tcl script around teacup that gets the output from
> 'teacup list' (yes, it's available in an easy-to-parse form if you ask
> nicely) and then feeds the results through 'teacup install'. After all,
> the documentation for 'teacup update' basically lists what it's doing
> anyway, so you should be able to figure out how to adapt...
>
> (Alas, it won't be as efficient as 'teacup update' so it is worth
> pursuing the extra options.)

Moreover, teacup isn't old enough to have much inertia...
Considering that the simple command 'teacup update' (without options)
does something strictly useless [*], it would not be a terrible breach
of compatibility to decide to change its default semantics to the one
Robert and I are looking forward to.

[*] Unless someone has a compelling argument for promoting as default:
"please spend the next few hours downloading and installing everything
that has ever landed on AS's hard disk"

-Alex

Report this thread to moderator Post Follow-up to this message
Old Post
Alexandre Ferrieux
03-31-08 11:19 AM


Re: Update using teacup
Alexandre Ferrieux wrote:
> [*] Unless someone has a compelling argument for promoting as default:
> "please spend the next few hours downloading and installing everything
> that has ever landed on AS's hard disk"

FWIW, while it took a while the first time round (especially as we
were debugging some problems at the time IIRC), after that it's been
speedy. But it could be quite slow over dialup.

Donal.

Report this thread to moderator Post Follow-up to this message
Old Post
Donal K. Fellows
03-31-08 11:19 AM


Re: Update using teacup
On Mar 29, 7:22=A0pm, Robert Hicks <sigz...@gmail.com> wrote:
> Is there an *easy* way of updating all those without doing it one at a
> time? Is there a feature in teacup I am overlooking?

Good question. While I prefer teacup update, I certainly can see a use
for the case you describe as well - I've installed everything I want,
I don't want that other stuff, just give me the updates for what I've
already got.

Seems like a useful enhancement to request at the
< http://bugs.activestate.com/enter_b...uct=3DActiveTcl >
web site

Report this thread to moderator Post Follow-up to this message
Old Post
Larry W. Virden
03-31-08 01:57 PM


Re: Update using teacup
On Mar 31, 9:00=A0am, "Larry W. Virden" <lvir...@gmail.com> wrote:
> On Mar 29, 7:22=A0pm, Robert Hicks <sigz...@gmail.com> wrote:
> 
>
> Good question. While I prefer teacup update, I certainly can see a use
> for the case you describe as well - I've installed everything I want,
> I don't want that other stuff, just give me the updates for what I've
> already got.
>
> Seems like a useful enhancement to request at the
> <http://bugs.activestate.com/enter_b...uct=3DActiveTcl>
> web site

Done...

Report this thread to moderator Post Follow-up to this message
Old Post
Robert Hicks
04-01-08 03:24 AM


Re: Update using teacup
SWEET!!

$ sudo teacup update --only newer

Retrieving application base-tcl-thread 8.5.2.0.284846 macosx-
universal ...@ http://teapot.activestate.com ... Ok
Retrieving application base-tk-thread  8.5.2.0.284846 macosx-
universal ...@ http://teapot.activestate.com ... Ok
Retrieving package     jpeg            0.3.3
tcl              ...@ http://teapot.activestate.com ... Ok
Retrieving package     ldap            1.6.9
tcl              ...@ http://teapot.activestate.com ... Ok
Retrieving package     math::bigfloat  2.0.1
tcl              ...@ http://teapot.activestate.com ... Ok
Retrieving package     tiff            0.2.1
tcl              ...@ http://teapot.activestate.com ... Ok
Retrieving package     tls             1.6            macosx-
universal ...@ http://teapot.activestate.com ... Ok
Retrieving package     uevent          0.2
tcl              ...@ http://teapot.activestate.com ... Ok

Installing 8 newer packages

Installing into /Library/Tcl/teapot

Installing application base-tcl-thread 8.5.2.0.284846 macosx-universal
Installing application base-tk-thread  8.5.2.0.284846 macosx-universal
Installing package     jpeg            0.3.3          tcl
Installing package     ldap            1.6.9          tcl
Installing package     math::bigfloat  2.0.1          tcl
Installing package     tiff            0.2.1          tcl
Installing package     tls             1.6            macosx-universal
Installing package     uevent          0.2            tcl

Installed 8 newer   packages
Installed 0 unknown packages


Report this thread to moderator Post Follow-up to this message
Old Post
Robert Hicks
04-03-08 12:58 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Tcl archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:19 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.