From ead676a790e8f800196ddad5036697bf10708262 Mon Sep 17 00:00:00 2001 From: Igor Shishkin Date: Sat, 4 Jan 2025 07:12:12 +0300 Subject: [PATCH] Name temporary files just *.tmp instead of *.rpm.tpm Signed-off-by: Igor Shishkin --- cli/lazyblob/lazyblob.go | 2 +- cli/lazyblob/lazyblob_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/lazyblob/lazyblob.go b/cli/lazyblob/lazyblob.go index f195932..669f106 100644 --- a/cli/lazyblob/lazyblob.go +++ b/cli/lazyblob/lazyblob.go @@ -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") } diff --git a/cli/lazyblob/lazyblob_test.go b/cli/lazyblob/lazyblob_test.go index a59d6ff..79552a8 100644 --- a/cli/lazyblob/lazyblob_test.go +++ b/cli/lazyblob/lazyblob_test.go @@ -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)