Skip to content

Commit

Permalink
[backend] names with ':' are not really allowed for update ids, as th…
Browse files Browse the repository at this point in the history
…ey are mapped to package names. Thus replace ':' with '_'
  • Loading branch information
mlschroe authored and adrianschroeter committed Mar 16, 2012
1 parent 81a6c65 commit 80737fd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/backend/bs_sched
Original file line number Diff line number Diff line change
Expand Up @@ -3776,7 +3776,11 @@ sub rebuildpatchinfo {
}
}
$update->{'version'} = $patchinfo->{'version'} || '1'; # bodhi inserts its own version...
$update->{'id'} = $patchinfo->{'incident'} || $projid;
$update->{'id'} = $patchinfo->{'incident'};
if (!$update->{'id'}) {
$update->{'id'} = $projid;
$update->{'id'} =~ s/:/_/g;
}
$update->{'type'} = $patchinfo->{'category'};
$update->{'title'} = $patchinfo->{'summary'};
$update->{'severity'} = $patchinfo->{'rating'} if defined $patchinfo->{'rating'};
Expand Down

0 comments on commit 80737fd

Please sign in to comment.