Changeset 441
- Timestamp:
- 06/25/12 19:36:48 (12 years ago)
- Location:
- server/trunk/web/lib/Sophie
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
server/trunk/web/lib/Sophie/Base/Result/DesktopFiles.pm
r355 r441 8 8 __PACKAGE__->add_columns(qw/pkgid count desktop_file_pkey/); 9 9 __PACKAGE__->set_primary_key(qw/desktop_file_pkey/); 10 __PACKAGE__->add_unique_constraint('pkgid_count' => [ 'pkgid', 'count' ]); 10 11 __PACKAGE__->belongs_to(BinFiles => 'Sophie::Base::Result::BinFiles', [ 'pkgid', 'count' ]); 11 12 __PACKAGE__->belongs_to(Rpms => 'Sophie::Base::Result::Rpms', 'pkgid'); -
server/trunk/web/lib/Sophie/Scan/RpmParser/Desktopfile.pm
r363 r441 73 73 count => $filelist{$fname}->count, 74 74 pkgid => $pkgid, 75 } 75 }, 76 { key => 'pkgid_count' }, 76 77 ); 77 78 foreach my $param ($ini->Parameters('Desktop Entry')) { -
server/trunk/web/lib/Sophie/Scan/RpmsPath.pm
r434 r441 27 27 28 28 $self->db->base->resultset('Paths')->find( 29 { d_path_key => $self->key } 29 { d_path_key => $self->key }, 30 { key => 'd_path_key' }, 30 31 )->path; 31 32 } … … 122 123 my ($self, $exists) = @_; 123 124 $self->db->base->resultset('Paths')->find( 124 { d_path_key => $self->key } 125 { d_path_key => $self->key }, 126 { key => 'd_path_key' }, 125 127 )->update({ 'exists' => ($exists ? 1 : 0) }); 126 128 $self->db->commit; … … 130 132 my ($self) = @_; 131 133 $self->db->base->resultset('Paths')->find( 132 { d_path_key => $self->key } 134 { d_path_key => $self->key }, 135 { key => 'd_path_key' }, 133 136 )->update({ needupdate => 0 }); 134 137 $self->db->commit; … … 138 141 my ($self) = @_; 139 142 $self->db->base->resultset('Paths')->find( 140 { d_path_key => $self->key } 143 { d_path_key => $self->key }, 144 { key => 'd_path_key' }, 141 145 )->get_column('needupdate'); 142 146 } … … 145 149 my ($self) = @_; 146 150 $self->db->base->resultset('Paths')->find( 147 { d_path_key => $self->key } 151 { d_path_key => $self->key }, 152 { key => 'd_path_key' }, 148 153 )->update({ 'updated' => \'now()' }); 149 154 $self->db->commit;
Note: See TracChangeset
for help on using the changeset viewer.