Permalink
Browse files

FLUME-1701: StagedInstall has -dist hard coded

(Brock Noland via Brock Noland)
  • Loading branch information...
1 parent 99a1724 commit 49e76e89e70292e0dde5eb65e053c788cf03c871 Brock Noland committed Nov 13, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 flume-ng-tests/src/test/java/org/apache/flume/test/util/StagedInstall.java
@@ -328,7 +328,7 @@ private File gunzipDistTarball(File tarballFile, File destDir)
try {
tarballInputStream = new GZIPInputStream(
new FileInputStream(tarballFile));
- File temp2File = File.createTempFile("flume", "-dist", destDir);
+ File temp2File = File.createTempFile("flume", "-bin", destDir);
String temp2FilePath = temp2File.getCanonicalPath();
temp2File.delete();
@@ -407,7 +407,7 @@ private String getRelativeTarballPath() throws Exception {
public boolean accept(File pathname) {
String name = pathname.getName();
if (name != null && name.startsWith("apache-flume-")
- && name.endsWith("-dist.tar.gz")) {
+ && name.endsWith("-bin.tar.gz")) {
return true;
}
return false;

0 comments on commit 49e76e8

Please sign in to comment.