Changeset 408


Ignore:
Timestamp:
11/15/11 12:07:35 (12 years ago)
Author:
nanardon
Message:
  • update needupdate flags
Location:
server/trunk/web
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • server/trunk/web/bin/sophie_scan

    r404 r408  
    1616foreach my $pathkey (@pkey) { 
    1717    my $time = time; 
     18    Sophie::Scan::RpmsPath 
     19        ->new($pathkey, Sophie::Scan->new) 
     20        ->set_no_needupdate; 
    1821    my @delta = Sophie::Scan::RpmsPath 
    1922    ->new($pathkey, Sophie::Scan->new) 
  • server/trunk/web/lib/Sophie/Base.pm

    r333 r408  
    1717        my $cg = Config::General->new($file); 
    1818        $config = { $cg->getall() }; 
     19        last 
    1920    } 
    2021    $config or die "No config found"; 
  • server/trunk/web/lib/Sophie/Base/Result/Paths.pm

    r333 r408  
    66 
    77__PACKAGE__->table('d_path'); 
    8 __PACKAGE__->add_columns(qw/d_path_key path added updated meta_path exists/); 
     8__PACKAGE__->add_columns( 
     9    qw/d_path_key path added updated meta_path 
     10    exists needupdate/ 
     11); 
    912__PACKAGE__->set_primary_key('d_path_key'); 
    1013__PACKAGE__->add_unique_constraint('path' => [ 'path' ]); 
  • server/trunk/web/lib/Sophie/Scan/RpmsPath.pm

    r407 r408  
    128128sub set_no_needupdate { 
    129129    my ($self) = @_; 
    130     warn "$$ UPD"; 
    131130    $self->db->base->resultset('Paths')->find( 
    132131        { d_path_key => $self->key } 
     
    137136sub set_updated { 
    138137    my ($self) = @_; 
    139     warn "$$ UPD"; 
    140138    $self->db->base->resultset('Paths')->find( 
    141139        { d_path_key => $self->key } 
Note: See TracChangeset for help on using the changeset viewer.