Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Apr 2016 21:27:20 +0200
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        Kevin Oberman <rkoberman@gmail.com>
Cc:        Jeffrey Bouquet <jeffreybouquet@yahoo.com>, FreeBSD Mailing List <freebsd-ports@freebsd.org>
Subject:   Re: Need an expect script or p5-*Expect* to lessen keystrokes upon large ports tree changes
Message-ID:  <20160402192720.GD5214@ivaldir.etoilebsd.net>
In-Reply-To: <CAN6yY1vX0NyO%2BkUN-QKYAt6TuqK6_WMXLA82F35VQuf0yDun7w@mail.gmail.com>
References:  <56FFC9F4.3060102@yahoo.com> <CAN6yY1vX0NyO%2BkUN-QKYAt6TuqK6_WMXLA82F35VQuf0yDun7w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--lc9FT7cWel8HagAv
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Apr 02, 2016 at 12:21:03PM -0700, Kevin Oberman wrote:
> On Sat, Apr 2, 2016 at 6:32 AM, Jeffrey Bouquet via freebsd-ports <
> freebsd-ports@freebsd.org> wrote:
>=20
> > Today  svn-of-ports has about 600 (tc,mc) /200 (r)  =3D 800 responses
> > required (tree and etc conflicts)
> >
> >
> > -----------------------------------------------------------------------=
---------------------
> >
> > 1...
> >
> > Select:
> >  (mc) prepare for updating moved-away children, if any (recommended),
> >  (p) postone, (q) quit resolution, (h) help:
> >
> > [ I need expect to return mc, and a RET ]  IF expect works upon svn
> > responses
> >
> > 2...
> >
> > Select:
> >  (p)    (df)   (e)   (m)
> >  (mc)          (tc)
> >   (s)
> >
> > [ I need  expect to return tc , and  a RET]  Sorry for the omitted svn
> > context
> >
> > 3...
> >
> > Select:
> >  (r) (p) (q) (h)                          [ sorry for the omitted svn
> > context]
> >
> > [I need expect to return r , and a RET ]
> >
> >
> >
> >
> > -----------------------------------------------------------------------=
----------------------------------------------------------
> >
> > Writing this request about 100/800 done for today, so cannot help this
> > time, not
> > urgent --  better yet if it was integrated into svn  as a feature...
> >
> > Seems  that, once-a-year or so, it is way too time consuming all of  a
> > sudden, and sometimes
> > exceedingly inconvenient -- so it would be nice to have a backup plan.
> >
> > I will provide context in a followup, after a few days, if that is necc.
> > for some expert or
> > semi-expert in expect to craft a script.
> >
> > Thanks in advance, or any other ideas appreciated.  Not wanting to waste
> > anyone's time.
> >
> > Jeff
> >
>=20
> I am not volunteering to write an expect script for you though it could be
> done with either expect or p5-Expect-Simple. Expect scripts, if reliable,
> are very difficult to write and mistakes can, in many cases, be disastrou=
s.
> I had to write and support scripts to talk to network routers and switches
> and I can't recommend it. There is always some possible response that you
> either didn't know about or thought you would never receive that blows
> things out of the water. And screen scraping is always risky as a minor
> change between versions can break everything.
>=20
> I am concerned with why this is happening. I have run "svn up /user/ports"
> nightly for years with no issues like you describe. This simply should not
> be happening. I'm curious as to why.
>=20
> Are you running svn in a script or manually? What command are you using?
> What version of subversion is installed or are you running the base
> svnlite? (I use the full-blown subversion.)
> Are you manually doing any edits to the ports tree?
> Have you looked at the output of "svn status /usr/ports"?

svn update --accept tc should do the trick, no need for an expect script

Best regards,
Bapt

--lc9FT7cWel8HagAv
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJXAB0YAAoJEGOJi9zxtz5a9IQP/imot3ReKnSVkrDuuovI+M0k
pp6iMsnOp8usgnYT3OazLCnjum0xSPMjFYxH1cuQed16PvZ2PTGVftY5QgwbDhVx
Iuvf/5C+TkFjZ2U2SqplVNB6l3C/dEEENUy3wZmD4MinbqNNdt8d2Q8bbZwMAxqY
NJ/QH8Zf/ihuSd+bUaBIyDrbH17XKGBkCEnCSn/S6dVB2enkyN7JQNv2jOlMUkzB
+gav7lu4/BcdgEP1/W2PwwDuuNXeRbJbKqLisIwFcnWu9bO5/NvMWME4q2polPNF
qwLmGz+SE+G33CQcO2NSOujwA/VZrNfO1LDFuNimWTbKUYPhYGdKx6fjhBjsZJ1G
QiSAdsJVZdQ7qJAbs6S5uZ/joEfIUwhLJtyMISwUYVgPz9DZQKN2mxeuxlTj1gTB
a5Q644t4ihEH6U7WhQhnp6nYMX68hSRbqSlx/B9i9lfqT8IRVckyZcG1OZ8c90ut
0GBO5cm9dvCnrykTAq+2dzQGhr5uakudoEDe7zTO3NWcs7TSBd4PEsDj2se0BYPB
sUgZCml3aY6jYQAaO4ROqfpPd63DSSDclKKSWl2UOIwBoVbEbJ73Om/sVwtxL6PM
aEpoQBIx6xboVMaA3RffTQsqMnPAsFwiS/PtMl1g4uUSiQd6Resr1LFqt30H5Mio
KOZMgNagJipLVKEeYCu8
=+tZZ
-----END PGP SIGNATURE-----

--lc9FT7cWel8HagAv--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160402192720.GD5214>