Re: RFC: patch to let import-package.sh handle pkgs that have existed before

Greg Troxel <[email protected]> Mon, 07 Jan 2013 08:09:35 -0500
Newsgroups gmane.os.netbsd.devel.pkgsrc.wip.general
Message-ID <[email protected]>
  I changed it to:
  - check the CVS/Repository files under the pkg directory, and allow the
    CVS directory to be present if it matches the current location
  - exit with error if the Repository file does not match (as replacement
    for the check added last month by othyro/wiz)
  - exit with error if CVS/Entries files contain anything else than
    directories.
  - not cvs add directories that contain a CVS directory

  and unrelated:
  - cleanup temp files on exit
  - use "type" instead of "which" to check for bmake presence
  - changed the final prompt (it confused me and I pressed enter without "y")

After not getting around to it, I read your diff, but not well enough to
be sure the changes are ok.  Presumably you have been testing them.

I am ambivalent about the allowing CVS directories to be present and the
rules you chose; I don't really understand the motivation.  So you might
add a comment explaining the use cases.   I see three cases:

  in wip, mkdir newpkg, populate it, ../import-package.sh.

  in pkgsrc proper, mkdir newpkg, populate, import

  when moving something from wip to pkgsrc proper, mv the dir, and cd to
  the new place, and ../../wip/import-package.sh

So in the first two cases, there should be no CVS files.  In the last
case, there are, but they are from the wrong place and wrong repo.  What
are you trying to enable?

The rest of the changes seem conceptually fine.

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412

_______________________________________________
pkgsrc-wip-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pkgsrc-wip-discuss
signature.asc (application/pgp-signature, 194 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (NetBSD)

iEYEARECAAYFAlDqyQ8ACgkQ+vesoDJhHiU5wACeLjrYdqa9rOtbhsbhHAULpqSD
nqcAoIeR45qr4kZLGbCY6U7MwtZsw1wZ
=2vd4
-----END PGP SIGNATURE-----