diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-07-13 19:45:58 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-07-13 19:45:58 (GMT) |
commit | 384aa393acd021eb2a76816b3cc9bad35cd49ba7 (patch) | |
tree | 9f56335d5db8bf2a8331daa982a4f256281b70f1 /rhimport/importer.go | |
parent | 3c67fe07b6103d1bd0ddafbfa7da0544cf7ed83e (diff) |
all fetched files are now inside seperate directory and always get imported from tmp-dir
Diffstat (limited to 'rhimport/importer.go')
-rw-r--r-- | rhimport/importer.go | 6 |
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 } |