Changeset 42 for server/trunk/web/lib/Sophie/Base/RpmsPath.pm
- Timestamp:
- 11/28/10 14:59:48 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/trunk/web/lib/Sophie/Base/RpmsPath.pm
r39 r42 15 15 my ($class, $pathkey) = @_; 16 16 17 bless(\$pathkey, $class); 18 } 17 bless({ key => $pathkey }, $class); 18 } 19 20 sub key { $_[0]->{key} } 19 21 20 22 sub path { … … 24 26 q{select path from d_path where d_path_key = ?} 25 27 ); 26 $sth->execute($ $self);28 $sth->execute($self->key); 27 29 my $res = $sth->fetchrow_hashref; 28 30 $sth->finish; … … 36 38 q{select * from rpmfiles where d_path = ?} 37 39 ); 38 $sth->execute($ $self);40 $sth->execute($self->key); 39 41 $sth->fetchall_hashref([ 'filename' ]); 40 42 } … … 101 103 $self->db->prepare_cached(q{ 102 104 update d_path set updated = now() where d_path_key = ? 103 })->execute($ $self);105 })->execute($self->key); 104 106 $self->db->commit; 105 107 } … … 114 116 ); 115 117 for (1 .. 3) { 116 if ($remove->execute($ $self, $rpm)) {118 if ($remove->execute($self->key, $rpm)) { 117 119 warn "deleting $rpm"; 118 120 $self->db->commit; … … 135 137 } 136 138 ); 137 if ($register->execute($ $self, $rpm, $pkgid)) {139 if ($register->execute($self->key, $rpm, $pkgid)) { 138 140 warn "adding $rpm"; 139 141 $self->db->commit;
Note: See TracChangeset
for help on using the changeset viewer.