Diff

Differences From Artifact [a0e025f3a4]:

To Artifact [ce86fe818d]:


    85     85   			echo "${type},${stat_data},${extra_data},${filename}"
    86     86   		fi
    87     87   	done
    88     88   }
    89     89   
    90     90   cd "${pkgsdir}" || exit 1
    91     91   
           92  +packagelistfile="${appfsdir}/sha1/${RANDOM}${RANDOM}${RANDOM}${RANDOM}${RANDOM}.tmp"
    92     93   for package in *; do
    93         -	packagelistfile="${appfsdir}/sha1/${RANDOM}${RANDOM}${RANDOM}${RANDOM}${RANDOM}.tmp"
    94     94   	(
    95     95   		cd "${package}" || exit 1
    96     96   
    97     97   		for os_cpuArch in *; do
    98     98   			os="$(echo "${os_cpuArch}" | cut -f 1 -d '-')"
    99     99   			cpuArch="$(echo "${os_cpuArch}" | cut -f 2- -d '-')"
   100    100   
................................................................................
   122    122   					isLatest='0'
   123    123   
   124    124   					echo "${package},${version},${os},${cpuArch},${manifestfile_hash},${isLatest}"
   125    125   				done
   126    126   
   127    127   			)
   128    128   		done
   129         -	) > "${packagelistfile}"
          129  +	)
   130    130   
   131         -	packagelistfile_hash="$(sha1 "${packagelistfile}")"
   132         -	mv "${packagelistfile}" "${appfsdir}/sha1/${packagelistfile_hash}"
          131  +done > "${packagelistfile}"
          132  +packagelistfile_hash="$(sha1 "${packagelistfile}")"
          133  +mv "${packagelistfile}" "${appfsdir}/sha1/${packagelistfile_hash}"
   133    134   
   134         -	echo "${packagelistfile_hash},sha1" > "${appfsdir}/index"
   135         -done
          135  +echo "${packagelistfile_hash},sha1" > "${appfsdir}/index"