ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/OSUT3Analysis/DBTools/scripts/crabclean
(Generate patch)

Comparing UserCode/OSUT3Analysis/DBTools/scripts/crabclean (file contents):
Revision 1.5 by ahart, Tue Mar 12 00:13:26 2013 UTC vs.
Revision 1.6 by ahart, Fri May 10 00:24:02 2013 UTC

# Line 21 | Line 21 | $outputDir = $ARGV[1] if !$opt{"dumb"} &
21  
22   if ($opt{"dataset"})
23    {
24 <    my $query = "select workingDirectory,location,dataset,user,creationTime from ntuple where dataset like '$dataset' order by creationTime";
24 >    my $queryDataset = $dataset;
25 >    $queryDataset =~ s/\*/%/g;
26 >    $queryDataset =~ s/(.*)/%$1%/g;
27 >    my $query = "select workingDirectory,location,dataset,user,creationTime from ntuple where dataset like '$queryDataset' order by creationTime";
28      $db->selectdb ("ntuple");
29      my $results = $db->query ($query);
30      if ($results->numrows () == 1)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines