Software Freedom Law Center

Changeset 36

Show
Ignore:
Timestamp:
12/22/07 18:47:54 (1 year ago)
Author:
bkuhn
Message:
  • Discovered that update-loblaw-test.plx was not doing hg operations
    correctly. Apparently they all must be done with relative, not
    absolute, path names. I added various chdirs() to make them happen in
    the right place.
  • Added phpldapadmin config file to file list.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ChangeLog

    r33 r36  
    112007-12-22  Bradley M. Kuhn  <bkuhn@softwarefreedom.org> 
     2 
     3        * dev-tools/update-loblaw-test.plx (ProcessRevision): Added 
     4        various chdir() commands. 
     5 
     6        * configs/ldap/slapd.conf: Added 'access to dn.base="" by * read' 
     7        because apparently we need this to make initial reads work. 
    28 
    39        * dev-tools/update-loblaw-test.plx (ProcessRevision): Fixed hg 
  • trunk/dev-tools/loblaw-unpackaged-files.dat

    r28 r36  
    66configs/apache/intranet.example.org => /etc/apache2/sites-available/intranet.example.org 
    77configs/apache/ports.conf => /etc/apache2/ports.conf 
     8configs/apache/phpldapadmin-config.php => /etc/phpldapadmin/config.php 
     9 
  • trunk/dev-tools/update-loblaw-test.plx

    r33 r36  
    302302    my $outputFile = $DUAL_REVISIONED_FILE_LIST{$inputFile}; 
    303303 
     304    chdir $LOBLAW_TEST_HG_CHECKOUT or 
     305      DieLog("unable to change directory to $LOBLAW_TEST_HG_CHECKOUT: $!"); 
     306 
    304307    if ($operation =~ /^\s*(?:U|M|\~|L|A)\s*/) { 
    305308      my($dir, $filename); 
     
    320323             $LOCK_CLEANUP_CODE); 
    321324      } 
    322       read_from_process($HG, 'add', "$LOBLAW_TEST_HG_CHECKOUT/$outputFile") 
     325      read_from_process($HG, 'add', "$outputFile") 
    323326        if ($operation =~ /^\s*A\s*/); 
    324327    } elsif ($operation =~ /^\s*D\s*/) { 
    325328      unlink("$LOBLAW_TEST_HG_CHECKOUT/$outputFile"); 
    326       read_from_process($HG, 'remove', 
    327                     "$LOBLAW_TEST_HG_CHECKOUT/$outputFile"); 
     329      read_from_process($HG, 'remove', "$outputFile"); 
    328330    } else { 
    329331      DieLog("Invalid svnlook status, $operation, in $changeLine", 
    330332             $LOCK_CLEANUP_CODE); 
    331333    } 
     334    chdir $LOBLAW_TRUNK_CHECKOUT or 
     335      DieLog("unable to change directory to $LOBLAW_TRUNK_CHECKOUT: $!"); 
    332336    my @svnLog = read_from_process($SVN, '-r', $revision, 'log', $inputFile); 
    333337    my($tempFH, $tempFile) = mkstemps( "hgcommitXXXXXX", ".log"); 
     
    339343    } 
    340344    $tempFH->close(); 
     345    chdir $LOBLAW_TEST_HG_CHECKOUT or 
     346      DieLog("unable to change directory to $LOBLAW_TEST_HG_CHECKOUT: $!"); 
    341347    my @vals = read_from_process($HG, 'commit', '-l', $tempFile, 
    342                                  "$LOBLAW_TEST_HG_CHECKOUT/$outputFile"); 
     348                                 "$outputFile"); 
    343349    unlink($tempFile); 
    344350    DieLog("Unexpected output from commit: " . join("\n", @vals), 

SFLC Main Page

[frdm] Support SFLC