Update of /cvsroot/fink/fink/perlmod/Fink
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24003

Modified Files:
        ChangeLog PkgVersion.pm Engine.pm 
Log Message:
dumpinfo: hide compile-related booleans in splitoff pkgs.
get_source(): no default Source for splitoff pkgs.
get_source_suffices: no sources for splitoff pkgs.


Index: Engine.pm
===================================================================
RCS file: /cvsroot/fink/fink/perlmod/Fink/Engine.pm,v
retrieving revision 1.175
retrieving revision 1.176
diff -u -d -r1.175 -r1.176
--- Engine.pm   10 May 2004 06:07:39 -0000      1.175
+++ Engine.pm   26 May 2004 15:54:23 -0000      1.176
@@ -1789,12 +1789,15 @@
                                my $deplist = $pkg->pkglist($_);
                                printf "%s: %s\n", $_, $deplist if defined $deplist;
                        } elsif ($_ eq 'essential'         or $_ eq 'builddependsonly' 
 or
-                                        $_ eq 'nosourcedirectory' or $_ eq 
'updateconfigguess' or
-                                        $_ eq 'updatelibtool'     or $_ eq 
'updatepomakefile'  or
                                         $_ =~ /^noset/            or $_ eq 
'noperltests'       or
                                         $_ eq 'updatepod'
                                        ) {
                                printf "%s: %s\n", $_, $pkg->param_boolean($_) ? 
"true" : "false";
+                       } elsif ($_ eq 'nosourcedirectory' or $_ eq 
'updateconfigguess' or
+                                        $_ eq 'updatelibtool'     or $_ eq 
'updatepomakefile'
+                                       ) {
+                               # these are not for SplitOff pkgs
+                               printf "%s: %s\n", $_, $pkg->param_boolean($_) ? 
"true" : "false" unless exists $pkg->{parent};
                        } elsif ($_ eq 'sources') {
                                # multiline field, so indent 1 space always
                                my @suffixes = map { $pkg->get_source($_) } 
$pkg->get_source_suffices;

Index: PkgVersion.pm
===================================================================
RCS file: /cvsroot/fink/fink/perlmod/Fink/PkgVersion.pm,v
retrieving revision 1.263
retrieving revision 1.264
diff -u -d -r1.263 -r1.264
--- PkgVersion.pm       24 May 2004 01:21:38 -0000      1.263
+++ PkgVersion.pm       26 May 2004 15:54:23 -0000      1.264
@@ -643,7 +643,7 @@
 
        # Cache it
        if (!exists $self->{_source_suffices}) {
-               if ( $self->is_type('bundle') || $self->is_type('nosource') || 
$self->is_type('dummy') ) {
+               if ( $self->is_type('bundle') || $self->is_type('nosource') || 
$self->is_type('dummy') || exists $self->{parent} ) {
                        $self->{_source_suffices} = [];
                } else {
                        my @params = $self->params_matching('source([2-9]|[1-9]\d+)');
@@ -668,7 +668,7 @@
        my $suffix = shift || "";
        
        # Implicit primary source
-       if ( $suffix eq "" ) {
+       if ( $suffix eq "" and !exists $self->{parent} ) {
                my $source = $self->param_default("Source", "\%n-\%v.tar.gz");
                if ($source eq "gnu") {
                        $source = "mirror:gnu:\%n/\%n-\%v.tar.gz";

Index: ChangeLog
===================================================================
RCS file: /cvsroot/fink/fink/perlmod/Fink/ChangeLog,v
retrieving revision 1.624
retrieving revision 1.625
diff -u -d -r1.624 -r1.625
--- ChangeLog   24 May 2004 01:21:37 -0000      1.624
+++ ChangeLog   26 May 2004 15:54:23 -0000      1.625
@@ -1,6 +1,13 @@
+2004-05-26  Daniel Macks  <[EMAIL PROTECTED]>
+
+       * Engine.pm: dumpinfo: don't print fields that don't apply to
+       splitoffs for splitoff pkgs.
+       * PkgVersion.pm: get_source: no default Source for splitoff
+       pkgs. get_source_suffices: no sources for splitoff pkgs.
+
 2004-05-23  Daniel Macks  <[EMAIL PROTECTED]>
 
-       * PkgVerison.pm: Ignore SourceN for Type "bundle", "nosource", "dummy".
+       * PkgVerison.pm: get_source_suffices: Ignore SourceN for Type "bundle", 
"nosource", "dummy".
 
 2004-05-21  Dave Morrison  <[EMAIL PROTECTED]>
 



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Fink-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to