[devel-distro] mkimage-profiles: проблемы

Michael Shigorin mike at osdn.org.ua
Fri Nov 23 16:30:02 MSK 2012


On Sat, Nov 10, 2012 at 03:59:10PM +0200, I wrote:
> Проблема в вывале скрипта.  И похоже, что в verbose(),
> как это ни смешно -- а у меня маскировалась "DEBUG = 1"
> в ~/.mkimage/profiles.mk; прошу проверить приложенный патч.

Оказался он неполон.

-- 
 ---- WBR, Michael Shigorin <mike at altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/
-------------- next part --------------
>From c30b921b4c4de21e5cb43dadc036cd58878b1c92 Mon Sep 17 00:00:00 2001
From: Michael Shigorin <mike at altlinux.org>
Date: Fri, 23 Nov 2012 16:03:32 +0400
Subject: [PATCH 1/3] 03-test-kernel: silliest mistake II

The previous part was fixed and discussed in commit
c30490e2e884f8655a2704fa6a84e60b13876874;
so much for a deduplication effort...

This would result in almost immediate

  make[1]: *** [profile/populate] Error 2

as well.
---
 features.in/stage2/stage1/scripts.d/03-test-kernel | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/features.in/stage2/stage1/scripts.d/03-test-kernel b/features.in/stage2/stage1/scripts.d/03-test-kernel
index d9f27c2..12e68e4 100755
--- a/features.in/stage2/stage1/scripts.d/03-test-kernel
+++ b/features.in/stage2/stage1/scripts.d/03-test-kernel
@@ -7,7 +7,7 @@ GZ_OPTS="-comp gzip -noI"
 XZ_OPTS="-comp xz"
 LZO_OPTS="-comp lzo -noI"
 
-verbose() { [ -n "$GLOBAL_VERBOSE" ] && echo "** $@" >&2; }
+verbose() { [ -z "$GLOBAL_VERBOSE" ] || echo "** $@" >&2; }
 fatal() { echo "** error: $@" >&2; exit 1; }
 
 configured()
-- 
1.7.12.4



More information about the devel-distro mailing list