Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 May 2008 05:10:54 +0000 (UTC)
From:      Giorgos Keramidas <keramida@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/usr.sbin/pkg_install/create create.h main.c perform.c pkg_create.1
Message-ID:  <200805270510.m4R5Asbd044554@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 &lt; matthias.apitz at oclc.org &gt;
  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



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