diff options
author | cheusov <cheusov@pkgsrc.org> | 2012-11-06 20:48:46 +0000 |
---|---|---|
committer | cheusov <cheusov@pkgsrc.org> | 2012-11-06 20:48:46 +0000 |
commit | a07b0866053d5c07941094a49515b482d2e0a036 (patch) | |
tree | 7a49b8be37388049e7e0da120880c812b5e56ec6 /pkgtools | |
parent | 8a4ee22e5369452676d1044ef56e29d8497ad9f6 (diff) | |
download | pkgsrc-a07b0866053d5c07941094a49515b482d2e0a036.tar.gz |
pkg_update_src_summary: fix for the case when there are no new/updated
packages, only removals. ++pkgrevision.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/pkg_summary-utils/Makefile | 3 | ||||
-rw-r--r-- | pkgtools/pkg_summary-utils/distinfo | 3 | ||||
-rw-r--r-- | pkgtools/pkg_summary-utils/patches/patch-pkg__update__src__summary.in | 24 |
3 files changed, 28 insertions, 2 deletions
diff --git a/pkgtools/pkg_summary-utils/Makefile b/pkgtools/pkg_summary-utils/Makefile index 52edd33fcfc..24db320f1f7 100644 --- a/pkgtools/pkg_summary-utils/Makefile +++ b/pkgtools/pkg_summary-utils/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.24 2012/11/04 17:09:21 cheusov Exp $ +# $NetBSD: Makefile,v 1.25 2012/11/06 20:48:46 cheusov Exp $ DISTNAME= pkg_summary-utils-0.59.0 +PKGREVISION= 1 CATEGORIES= pkgtools MASTER_SITES= ftp://ftp.NetBSD.org/pub/NetBSD/misc/cheusov/psu/ \ http://www.mova.org/~cheusov/pub/pkg_summary-utils/ diff --git a/pkgtools/pkg_summary-utils/distinfo b/pkgtools/pkg_summary-utils/distinfo index cfa2e7944fa..f3457c342a8 100644 --- a/pkgtools/pkg_summary-utils/distinfo +++ b/pkgtools/pkg_summary-utils/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.14 2012/11/04 17:09:21 cheusov Exp $ +$NetBSD: distinfo,v 1.15 2012/11/06 20:48:46 cheusov Exp $ SHA1 (pkg_summary-utils-0.59.0.tar.gz) = a40dac6aee1c8482d8e2e7047fa84e5ffad72467 RMD160 (pkg_summary-utils-0.59.0.tar.gz) = 0e2f4d7b174f51526d73fa6d3de0cea4db7fa6b5 Size (pkg_summary-utils-0.59.0.tar.gz) = 145656 bytes +SHA1 (patch-pkg__update__src__summary.in) = 5f054cc04e96c7d7c6af5de471b23e692d9dd30b diff --git a/pkgtools/pkg_summary-utils/patches/patch-pkg__update__src__summary.in b/pkgtools/pkg_summary-utils/patches/patch-pkg__update__src__summary.in new file mode 100644 index 00000000000..89e33b8b9c7 --- /dev/null +++ b/pkgtools/pkg_summary-utils/patches/patch-pkg__update__src__summary.in @@ -0,0 +1,24 @@ +$NetBSD: patch-pkg__update__src__summary.in,v 1.1 2012/11/06 20:48:46 cheusov Exp $ + +--- pkg_update_src_summary.in.orig 2012-11-06 20:43:12.000000000 +0000 ++++ pkg_update_src_summary.in +@@ -178,14 +178,14 @@ if test -n "$debug"; then + fi + + pkg_grep_summary -t strfile PKGPATH "$new_pkgs_fn" \ +- < "$old_summary" > "$old_summary.tmp" +-mv "$old_summary.tmp" "$old_summary" ++ < "$old_summary" > "$new_summary" + + if test -s "$updated_pkgs_fn"; then + pkg_grep_summary -v -t strfile PKGPATH "$updated_pkgs_fn" \ +- < "$old_summary" > "$new_summary" ++ < "$new_summary" > "$new_summary.tmp" ++ mv "$new_summary.tmp" "$new_summary" + + run_pkg_src_summary < "$updated_pkgs_fn" >> "$new_summary" +- +- finish + fi ++ ++finish |