Revert "Warn and create empty debugsource package if there are no sources."
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 10 Aug 2017 08:17:36 +0000 (11:17 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 10 Aug 2017 08:17:36 +0000 (11:17 +0300)
This reverts commit 11b9f5b312f248841ae6ebf6602496cfe2ffb5fe.

scripts/find-debuginfo.sh

index 9b3815addb2e1f17900708b00f6f25953a87c077..d8725ad008df0fe29fbb659930d66755ebee2c57 100755 (executable)
@@ -573,19 +573,6 @@ if [ -n "$srcout" ]; then
      find src/debug -mindepth 1 -maxdepth 1
     ) | sed 's,^,/usr/,' >> "$srcout"
   fi
-  if [ ! -s "$srcout" ]; then
-    echo >&2 "*** WARNING: No source files found.  Creating empty debugsource package"
-    # Create the empty directory.
-    # See also debugedit invocation. Directories must match up.
-    debug_base_name="$RPM_BUILD_DIR"
-    debug_dest_name="/usr/src/debug"
-    if [ ! -z "$unique_debug_src_base" ]; then
-      debug_base_name="$BUILDDIR"
-      debug_dest_name="/usr/src/debug/${unique_debug_src_base}"
-    fi
-    mkdir -p "${RPM_BUILD_ROOT}${debug_dest_name}"
-    echo "$debug_dest_name" > "$srcout"
-  fi
 fi
 
 # Append to $1 only the lines from stdin not already in the file.
This page took 0.063731 seconds and 5 git commands to generate.