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:
mark%moxienet.com
2006-02-24 18:16:33 +00:00
parent 122bb0663b
commit 628e9a74ee
2 changed files with 25 additions and 3 deletions

View File

@@ -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

View File

@@ -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