chiark / gitweb /
automatic agpl compliance: fix licence installation to come soon enough
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 23 Feb 2013 20:07:24 +0000 (20:07 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 23 Feb 2013 20:07:24 +0000 (20:07 +0000)
cgi-auth-flexible.pm

index 987170edabe2ab0cf00a418b6185c228cc1fc437..d4f248ef4d3d884c376bae7e0e736f5dcbe28275 100644 (file)
@@ -383,6 +383,7 @@ sub srcdump_dirscan_prepare ($$) {
        $dirsdone{$item}++;
     }
     close $reportfh or die $!;
+    srcdump_install($c,$v, $dumpdir, 'licence', 'text/plain');
     $!=0;
     my @cmd = (qw(tar -zvvcf), "$dumpdir/source.tmp",
               "-C", $dumpdir, qw(  --), @srcfiles);
@@ -392,7 +393,6 @@ sub srcdump_dirscan_prepare ($$) {
        die "tar failed";
     }
     die "licence file not found" unless defined $needlicence;
-    srcdump_install($c,$v, $dumpdir, 'licence', 'text/plain');
     srcdump_install($c,$v, $dumpdir, 'source', 'application/octet-stream');
     close $lockf or die $!;
 }