incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r1206195 - /incubator/ooo/trunk/main/fetch_tarballs.sh
Date Fri, 25 Nov 2011 14:39:19 GMT
Author: jsc
Date: Fri Nov 25 14:39:18 2011
New Revision: 1206195

URL: http://svn.apache.org/viewvc?rev=1206195&view=rev
Log:
#118605# minor fix for wildcard check

Modified:
    incubator/ooo/trunk/main/fetch_tarballs.sh

Modified: incubator/ooo/trunk/main/fetch_tarballs.sh
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/fetch_tarballs.sh?rev=1206195&r1=1206194&r2=1206195&view=diff
==============================================================================
--- incubator/ooo/trunk/main/fetch_tarballs.sh (original)
+++ incubator/ooo/trunk/main/fetch_tarballs.sh Fri Nov 25 14:39:18 2011
@@ -149,8 +149,10 @@ if [ -n "$EPM_URL" -a ! -x "$SOLARENV/$O
     epm_package=`echo $epm_package_name | sed "s/-source//"`
     epm_wildcard_package_name="*-$epm_package"
 
+    epmtest=$(find .. -type f -name "$epm_wildcard_package_name")
+
     # check with wildcard for the renamed package, md5 
-    if [ ! -f "../$epm_wildcard_package_name" ]; then
+    if [ -z "$epmtest" ]; then
         # Fetch the epm source
         if [ ! -z "$wget" ]; then
             echo fetching $EPM_URL with wget to $TARFILE_LOCATION/tmp
@@ -180,7 +182,7 @@ if [ -n "$EPM_URL" -a ! -x "$SOLARENV/$O
             echo "successfully downloaded $epm_package_name and renamed to $epm_md5_package_name"
         fi
     else
-        echo "found $epm_package_name, no need to download it again"
+        echo "found $epmtest, no need to download it again"
     fi
 fi 
 # end special 



Mime
View raw message