Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
rchincha committed Apr 15, 2024
1 parent 3c87b14 commit 8b46fbb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/distro/apk/apk.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ func ParsePackage(input, output, author, organization, license string) error {
},
LicenseInfoInFile: license,
}
sfile.BuildID("")

if err := spkg.AddFile(sfile); err != nil {
log.Error().Err(err).Msg("unable to add file to package")

Expand Down
2 changes: 2 additions & 0 deletions pkg/distro/deb/deb.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ func ParsePackage(input, output, author, organization, license string) error {
},
LicenseInfoInFile: license,
}
sfile.BuildID("")

if err := spkg.AddFile(sfile); err != nil {
log.Error().Err(err).Msg("unable to add file to package")

Expand Down
1 change: 1 addition & 0 deletions pkg/distro/rpm/rpm.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ func ParsePackage(input, output, author, organization, license string) error {
},
},
)
sfile.BuildID("")

if err := spkg.AddFile(sfile); err != nil {
log.Error().Err(err).Msg("unable to add file to package")
Expand Down
1 change: 1 addition & 0 deletions pkg/fs/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ func Verify(input, inventory, missing string) error {
Checksum: map[string]string{"SHA256": strings.Split(entry.Checksum, ":")[1]},
},
)
sfile.BuildID("")

mdocMtx.Lock()
err := mdoc.AddFile(sfile)
Expand Down

0 comments on commit 8b46fbb

Please sign in to comment.