summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-11-12 11:05:32 +0000
committerOlivier Blin <oblin@mandriva.com>2007-11-12 11:05:32 +0000
commit59e507cf003c25e8f793154bb9ffff5c3942c420 (patch)
tree7cce8886b7e1dad0c8cedaa8671373683e0337d1
parentf9c6f4f9c697fe1f12b851a9886b928df947b328 (diff)
downloaddraklive-59e507cf003c25e8f793154bb9ffff5c3942c420.tar
draklive-59e507cf003c25e8f793154bb9ffff5c3942c420.tar.gz
draklive-59e507cf003c25e8f793154bb9ffff5c3942c420.tar.bz2
draklive-59e507cf003c25e8f793154bb9ffff5c3942c420.tar.xz
draklive-59e507cf003c25e8f793154bb9ffff5c3942c420.zip
chomp arch returned by rpm to fix directory names when arch is not in settings.cfg (#35105)
-rwxr-xr-xdraklive2
1 files changed, 1 insertions, 1 deletions
diff --git a/draklive b/draklive
index 962a10e..0f62464 100755
--- a/draklive
+++ b/draklive
@@ -1505,7 +1505,7 @@ sub complete_config {
$live->{settings}{builddir} ||= '/var/lib/draklive/build';
$live->{settings}{chroot} ||= '/var/lib/draklive/chroot';
- $live->{settings}{arch} ||= `rpm --eval '%{_target_cpu}'`;
+ $live->{settings}{arch} ||= chomp_(`rpm --eval '%{_target_cpu}'`);
$live->{media}{title} ||= "live";
mkdir_p(get_builddir($live));