OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Thomas Lotterer
  Root:   /v/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-tools                    Date:   02-Aug-2005 20:31:33
  Branch: HEAD                             Handle: 2005080219313200

  Modified files:
    openpkg-tools/cmd       dev.sh

  Log:
    "openpkg dev build" now detects when a rebuild is needed because the
    spec file is newer than rpm file

  Summary:
    Revision    Changes     Path
    1.43        +1  -1      openpkg-tools/cmd/dev.sh
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-tools/cmd/dev.sh
  ============================================================================
  $ cvs diff -u -r1.42 -r1.43 dev.sh
  --- openpkg-tools/cmd/dev.sh  2 Aug 2005 18:29:09 -0000       1.42
  +++ openpkg-tools/cmd/dev.sh  2 Aug 2005 18:31:32 -0000       1.43
  @@ -2098,7 +2098,7 @@
           rpmfile=`rpmE -q --qf "${template}" \
                    --specfile ${OPENPKG_WORK}/$S/${name}/${name}.spec`
           rpmdir=`rpmE --eval '%{_rpmdir}'`
  -        if [ ! -f "$rpmdir/$rpmfile" -o $force -ne 0 ]; then
  +        if [ ! -f "$rpmdir/$rpmfile" -o 
${OPENPKG_WORK}/$S/${name}/${name}.spec -nt "$rpmdir/$rpmfile" -o $force -ne 0 
]; then
               echo "++ building $package ($rpmfile)"
               opt="`echo ${opt} | tr ' ' '\n' | ${EGREP} . | sed -e 
's;^;--define \";' -e 's;=; ;' -e 's;$;\";' | tr '\n' ' '`"
               (builtin cd ${OPENPKG_WORK}/$S/${name} && openpkgT fetch 
${name}.spec)
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     openpkg-cvs@openpkg.org

Reply via email to