mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 18:15:42 +01:00
Merge branch 'main' into rolie-categories
This commit is contained in:
commit
dc8c89c886
8 changed files with 57 additions and 28 deletions
|
|
@ -261,11 +261,14 @@ func (c *controller) upload(r *http.Request) (interface{}, error) {
|
|||
return err
|
||||
}
|
||||
|
||||
if err := updateIndices(
|
||||
folder, filepath.Join(year, newCSAF),
|
||||
ex.CurrentReleaseDate,
|
||||
); err != nil {
|
||||
return err
|
||||
// Only write index.txt and changes.csv if configured.
|
||||
if c.cfg.WriteIndices {
|
||||
if err := updateIndices(
|
||||
folder, filepath.Join(year, newCSAF),
|
||||
ex.CurrentReleaseDate,
|
||||
); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
// Take over publisher
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue