/branches/scaner/apt-scan2sql.sh/apt-scan2sql.sh |
---|
31,9 → 31,8 |
if [ "$id_current" == "" ]; then |
echo Adding r2d $id_rep $id_dist; |
$sql $db "INSERT INTO reps2dists VALUES (NULL, $id_rep, $id_dist)"; |
fi; |
id_current="$($sql $db "SELECT id FROM reps2dists WHERE rep_id=$id_rep AND dist_id=$id_dist")"; |
echo Adding r2d2s $id_current $id_sect; |
$sql $db "INSERT INTO reps2dists2sects VALUES (NULL, $id_current, $id_sect)"; |
fi; |
done |