Skip to content

Commit

Permalink
Name temporary files just *.tmp instead of *.rpm.tpm
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Shishkin <me@teran.ru>
  • Loading branch information
teran committed Jan 4, 2025
1 parent 459e279 commit ead676a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/lazyblob/lazyblob.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func (l *lazyblob) download(ctx context.Context) error {
return errors.Wrap(err, "error creating directory structure")
}

l.tempFile, err = os.CreateTemp(l.tempDir, "package_*.rpm.tmp")
l.tempFile, err = os.CreateTemp(l.tempDir, "package_*.tmp")
if err != nil {
return errors.Wrap(err, "error creating temporary file")
}
Expand Down
2 changes: 1 addition & 1 deletion cli/lazyblob/lazyblob_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func TestLazyblob(t *testing.T) {

fn, err := lb.Filename(ctx)
r.NoError(err)
r.True(strings.HasSuffix(fn, ".rpm.tmp"))
r.True(strings.HasSuffix(fn, ".tmp"))

fp, err := lb.Reader(ctx)
r.NoError(err)
Expand Down

0 comments on commit ead676a

Please sign in to comment.