328403 Update (.mar) packaging should fail if the stuff to package is missing. r=darin
git-svn-id: svn://10.0.0.236/trunk@191166 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -37,9 +37,16 @@ manifest="$workdir/update.manifest"
|
||||
targetfiles="update.manifest"
|
||||
|
||||
# Generate a list of all files in the target directory.
|
||||
list=$(cd "$targetdir" && list_files)
|
||||
pushd "$targetdir"
|
||||
if test $? -ne 0 ; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
list=$(list_files)
|
||||
eval "files=($list)"
|
||||
|
||||
popd
|
||||
|
||||
mkdir -p "$workdir"
|
||||
> $manifest
|
||||
|
||||
|
||||
@@ -71,11 +71,26 @@ manifest="$workdir/update.manifest"
|
||||
archivefiles="update.manifest"
|
||||
|
||||
# Generate a list of all files in the target directory.
|
||||
list=$(cd "$olddir" && list_files)
|
||||
pushd "$olddir"
|
||||
if test $? -ne 0 ; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
list=$(list_files)
|
||||
eval "oldfiles=($list)"
|
||||
list=$(cd "$newdir" && list_files)
|
||||
|
||||
popd
|
||||
|
||||
pushd "$newdir"
|
||||
if test $? -ne 0 ; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
list=$(list_files)
|
||||
eval "newfiles=($list)"
|
||||
|
||||
popd
|
||||
|
||||
mkdir -p "$workdir"
|
||||
> $manifest
|
||||
|
||||
|
||||
Reference in New Issue
Block a user