From c16cb352ca18efc95dcf4e98401a3a0838313395 Mon Sep 17 00:00:00 2001 From: Pavel Chipiga Date: Tue, 24 Jan 2012 23:25:16 +0200 Subject: [PATCH] Fix import_srpm tmp_dir. Refs #31 --- bin/import_srpm.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/import_srpm.sh b/bin/import_srpm.sh index 753f5228b..6b3bd1512 100755 --- a/bin/import_srpm.sh +++ b/bin/import_srpm.sh @@ -5,8 +5,9 @@ srpm_path=$1 git_path=$2 git_branch=$3 -tmp_dir=/tmp/$RANDOM +name=$(rpm -q --qf '[%{Name}]' -p $srpm_path) version=$(rpm -q --qf '[%{Version}]' -p $srpm_path) +tmp_dir=/tmp/$name-$version-$RANDOM # Clone destination repo mkdir -p $tmp_dir