cvs commit: src/usr.sbin/pkg_install/create create.h main.c perform.c pkg_create.1

Giorgos Keramidas keramida at FreeBSD.org
Tue May 27 05:10:54 UTC 2008


keramida    2008-05-27 05:10:54 UTC

  FreeBSD src repository (doc committer)

  Modified files:
    usr.sbin/pkg_install/create create.h main.c perform.c 
                                pkg_create.1 
  Log:
  Add a -n option to pkg_create(1), to inhibit duplicate work.
  
  When run without this option, multiple runs of `pkg_create -Rb' will
  recreate common packages multiple times.  This can take a lot of time
  for large packages.  With the -n option `pkg_create -b' checks with
  stat(2) and skips packages that already exist.
  
  Note that this may *not* be safe of the existing output file is not
  really a package, or if it has been corrupted, modified or otherwise
  tinkered with between subsequent pkg_create runs.  For this and POLA
  reasons, the default behavior is to *rebuild* the packages, and the -n
  option can be used when we know it is `safe' to run in no-regenerate
  mode.
  
  Inspired by:    A post to freebsd-questions
                  by Matthias Apitz < matthias.apitz at oclc.org >
  Reviewed by:    marcus, flz
  Approved by:    marcus
  MFC after:      2 weeks
  
  Revision  Changes    Path
  1.27      +1 -0      src/usr.sbin/pkg_install/create/create.h
  1.42      +7 -2      src/usr.sbin/pkg_install/create/main.c
  1.83      +13 -0     src/usr.sbin/pkg_install/create/perform.c
  1.73      +21 -3     src/usr.sbin/pkg_install/create/pkg_create.1


More information about the cvs-src mailing list