https://bugs.kde.org/show_bug.cgi?id=507897

Mark Wielaard <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Mark Wielaard <[email protected]> ---
That should work, except if there are no patches, then:

+for i in *.patch; do
+    patch -d "$LTP_SRC_DIR"  -p1 < "$i"
+done

will not match anything and you end up with i being literally "*.patch" which
causes the patch < "*.patch" to fail.

Since applypatches.sh is a bash script you could do:

if compgen -G "*.patch"; then
  for i in *.patch; do
     patch -d "$LTP_SRC_DIR"  -p1 < "$i"
  done
fi

Which should also work when there aren't any *patch files around.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to