summaryrefslogtreecommitdiff
path: root/rhimport/importer.go
diff options
context:
space:
mode:
Diffstat (limited to 'rhimport/importer.go')
-rw-r--r--rhimport/importer.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/rhimport/importer.go b/rhimport/importer.go
index 518b242..5f2f40d 100644
--- a/rhimport/importer.go
+++ b/rhimport/importer.go
@@ -436,11 +436,7 @@ func cleanupFiles(ctx *Context, res *Result) {
}
}
} else {
- if strings.HasPrefix(ctx.SourceFile, ctx.conf.LocalFetchDir) {
- res.SourceFile = "local://" + strings.TrimPrefix(ctx.SourceFile, ctx.conf.LocalFetchDir)
- } else if strings.HasPrefix(ctx.SourceFile, ctx.conf.TempDir) {
- res.SourceFile = "tmp://" + strings.TrimPrefix(ctx.SourceFile, ctx.conf.TempDir)
- }
+ res.SourceFile = "tmp://" + strings.TrimPrefix(ctx.SourceFile, ctx.conf.TempDir)
}
return
}