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 987170e..d4f248e 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 $!;
 }