This changes maybe_build_tarfile to require that the first directory
in the list actually exists.  This avoids building a GO tarball on
old branches where neither gcc/go nor libgo exist but libffi does.

I have built the 4.5.3 release candidate with this patch applied.

Looks ok?

Thanks,
Richard.

2011-04-21  Richard Guenther  <rguent...@suse.de>

        * gcc_release (maybe_build_tarfile): Require existance of the
        first directory.

Index: maintainer-scripts/gcc_release
===================================================================
--- maintainer-scripts/gcc_release      (revision 172819)
+++ maintainer-scripts/gcc_release      (working copy)
@@ -258,6 +258,7 @@ maybe_build_tarfile() {
     if [ -d "$maybe_dir" ]; then
       dir_exists=1
     fi
+    break;
   done
   if [ $dir_exists = 1 ]; then
     build_tarfile "$dest" "$@"

Reply via email to