]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- coreutils 6.12 compatible %groupadd, see: auto/ac/rpm-build-macros-1_478-1 auto/ti/rpm-build-macros-1_478-1
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 7 Sep 2008 10:40:37 +0000 (10:40 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  http://lists.pld-linux.org/mailman/pipermail/pld-devel-en/2008-August/020370.html

Changed files:
    rpm.macros -> 1.479

rpm.macros

index be2837043e707dc928e53e8e82e3ee13ef82e854..4a6a772ffaef8bf39c76f97f0163a919ed003eda 100644 (file)
@@ -911,7 +911,7 @@ fi;
 %groupadd(g:P:rfo)     \
 %{!-g:%{error:groupadd: Required argument -g missing}} \
 %{!?1:%{error:groupadd: Required parameter group missing}} \
-if [ -n "`/usr/bin/getgid %{1}`" ]; then \
+if ! /usr/bin/getgid %{1} > /dev/null 2>&1; then \
        if [ "`/usr/bin/getgid %{1}`" != "%{-g*}" ]; then \
                echo "Error: group %{1} doesn't have gid=%{-g*}. Correct this before installing %{-P*}%{!?-P:%{name}}." 1>&2 \
                exit 1 \
This page took 0.042459 seconds and 4 git commands to generate.