pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_distinst Update to 0.02



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9f9a3913a1f4
branches:  trunk
changeset: 552568:9f9a3913a1f4
user:      adrianp <adrianp%pkgsrc.org@localhost>
date:      Tue Jan 06 10:28:38 2009 +0000

description:
Update to 0.02
        Check for PATCHFILES as well

diffstat:

 pkgtools/pkg_distinst/Makefile              |   4 ++--
 pkgtools/pkg_distinst/files/pkg_distinst.pl |  10 +++++++++-
 2 files changed, 11 insertions(+), 3 deletions(-)

diffs (38 lines):

diff -r fa4990055bf4 -r 9f9a3913a1f4 pkgtools/pkg_distinst/Makefile
--- a/pkgtools/pkg_distinst/Makefile    Tue Jan 06 09:00:00 2009 +0000
+++ b/pkgtools/pkg_distinst/Makefile    Tue Jan 06 10:28:38 2009 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.1.1.1 2009/01/04 00:44:38 adrianp Exp $
+# $NetBSD: Makefile,v 1.2 2009/01/06 10:28:38 adrianp Exp $
 
-DISTNAME=      pkg_distinst-0.01
+DISTNAME=      pkg_distinst-0.02
 CATEGORIES=    pkgtools
 MASTER_SITES=  # empty
 DISTFILES=     # empty
diff -r fa4990055bf4 -r 9f9a3913a1f4 pkgtools/pkg_distinst/files/pkg_distinst.pl
--- a/pkgtools/pkg_distinst/files/pkg_distinst.pl       Tue Jan 06 09:00:00 2009 +0000
+++ b/pkgtools/pkg_distinst/files/pkg_distinst.pl       Tue Jan 06 10:28:38 2009 +0000
@@ -1,6 +1,6 @@
 #!@PERL5@ -w
 
-# $NetBSD: pkg_distinst.pl,v 1.1.1.1 2009/01/04 00:44:38 adrianp Exp $
+# $NetBSD: pkg_distinst.pl,v 1.2 2009/01/06 10:28:38 adrianp Exp $
 
 use Data::Dumper;
 use File::Basename;
@@ -90,6 +90,14 @@
                        push(@distfiles, @pdistfiles);
                }
 
+               $line = `@MAKE@ show-var VARNAME=PATCHFILES`;
+               chomp($line);
+
+               if ($line ne "") {
+                       @pdistfiles = split / /, $line;
+                       push(@distfiles, @pdistfiles);
+               }
+
                print ".";
        }
 }



Home | Main Index | Thread Index | Old Index