tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: how to upgrade a whole machine ...



 >>>    As of v1.91 pkg_chk (finally) started using local pkg_summary.gz
 >>>    iff it was the most recently modified file in PACKAGES/All
 >>
 >> Hm. I missed that. Thank you.  But I'd prefer to run my own tool
 >> (e.g. 'pkg_update_summary -r') in case there are binaries newest than
 >> summary file. Is it possible for you to implement this possibility?

>       So you would like pkg_chk to check for any binaries newer than
>       the pkg_summary file and run another command if found?

Yes, and I can do this outside pkg_chk like the following

   #!/bin/sh

   set -e

   pkg_update_summary -r \
      /usr/pkgsrc/packages/All/pkg_summary.gz /usr/pkgsrc/packages/All \
      'gzip -dc' 'gzip'

   pkg_chk "$@"

That is pkg_summary.txt is always updated if it is necessary.

>       The 'skip pkg_summary if newer binary package' is not a failsafe
>       option - it can fail if a package has been delete or if something
>       has been copied around preserving timestamps, does pkg_update_summary
>       have a 'quick check and update only if necessary' option?
If some packages were deleted, pkg_update_summary updates summary
correctly. Copying preserving timestamps? I don't do this :)
Can you explain how this may happen?

-- 
Best regards, Aleksey Cheusov.


Home | Main Index | Thread Index | Old Index