Skip to content

Commit

Permalink
Item12661: Manifest path must be relative to base
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@17107 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
GeorgeClark authored and GeorgeClark committed Nov 22, 2013
1 parent ea3a79a commit 8d4ef74
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions BuildContrib/data/System/BuildContrib.txt
Expand Up @@ -383,9 +383,9 @@ Primary MANFIEST
<verbatim>
...
pub/System/TinyMCEPlugin/screenshot.png 0644
!include MANIFEST349
!include MANIFEST357
!include MANIFEST408
!include lib/Foswiki/Plugins/TinyMCEPlugin/MANIFEST-3.4.9
!include lib/Foswiki/Plugins/TinyMCEPlugin/MANIFEST-3.5.7
!include lib/Foswiki/Plugins/TinyMCEPlugin/MANIFEST-4.0.8
pub/System/TinyMCEPlugin/tinymce.gif 0644
...
</verbatim>
Expand Down
7 changes: 5 additions & 2 deletions BuildContrib/lib/Foswiki/Contrib/BuildContrib/BaseBuild.pm
Expand Up @@ -89,10 +89,12 @@ sub readManifest {
next if $line =~ /^\s*(?:#|$)/;
if ( $line =~ /^!include\s+(\S+)\s*$/ ) {
my $incFile = $1;
if ( -f $incFile ) {

#print STDERR "Processing nested manifest $incFile\n";
if ( -f $baseDir . '/' . $incFile ) {
my ( $nfiles, $notherModules, $noptions ) =
Foswiki::Contrib::BuildContrib::BaseBuild::readManifest(
$baseDir, '', $incFile, sub { exit(1) } );
$baseDir, "$baseDir/", $incFile, sub { exit(1) } );
push @files, @$nfiles;
push @otherModules, @$notherModules;
%options = ( %options, %$noptions );
Expand Down Expand Up @@ -169,6 +171,7 @@ sub readManifest {
}
}
close $pf;

return ( \@files, \@otherModules, \%options );
}

Expand Down

0 comments on commit 8d4ef74

Please sign in to comment.