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

Comparing UserCode/OSUT3Analysis/DBTools/scripts/osusub (file contents):
Revision 1.8 by ahart, Fri Nov 23 11:17:44 2012 UTC vs.
Revision 1.9 by ahart, Wed Dec 12 07:42:10 2012 UTC

# Line 78 | Line 78 | outputRunList
78    if ($status ne "present")
79      {
80        print "This dataset is not marked as present on the Tier 3!\n";
81 <      exit;
81 >      print "Continue anyway? (y/N): ";
82 >      my $response = <STDIN>;
83 >      $response =~ s/\n//g;
84 >      exit if !$response || lc ($response) ne "y";
85      }
86    if (!(-e $location))
87      {
# Line 91 | Line 94 | outputRunList
94    if (@files - 2 != $nFiles)
95      {
96        print "Number of files does not match database entry!\n";
97 <      exit;
97 >      print "Continue anyway? (y/N): ";
98 >      my $response = <STDIN>;
99 >      $response =~ s/\n//g;
100 >      exit if !$response || lc ($response) ne "y";
101      }
102    open (RUNLIST, ">$workingDir/runList.py");
103    print RUNLIST "runList = [\n";
# Line 124 | Line 130 | getLocation
130    my $queryDataset = $dataset;
131    $queryDataset =~ s/\*/%/g;
132    $queryDataset =~ s/(.*)/%$1%/g;
133 <  my $query = "select dataset,user,creationTime,location,nFiles,status,crossSectionInPicobarn from ntuple where dataset like '$queryDataset' and status='present' order by creationTime";
133 >  my $query = "select dataset,user,creationTime,location,nFiles,status,crossSectionInPicobarn from ntuple where dataset like '$queryDataset' order by creationTime";
134    $db->selectdb ("ntuple");
135    $results = $db->query ($query);
136    if ($results->numrows () == 1)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines