When building with DSC, an error occurred, but it shouldn't lead to an exit situation.
This commit is contained in:
parent
df00611edf
commit
26f0698842
@ -20,13 +20,15 @@ exec_build(){
|
||||
echo "clean "
|
||||
make clean || echo ok
|
||||
echo "build deb in `pwd` "
|
||||
if [ $dscflag == "dsc" ];then
|
||||
make dsc || errlog "build dsc error"
|
||||
if [ "$dscflag" == "dsc" ];then
|
||||
make dsc || echo "dsc build error but it is not fatal error"
|
||||
cp *.dsc *.tar.* /tmp/$PKGDIR
|
||||
fi
|
||||
make deb || errlog "build deb error"
|
||||
# We need copy deb files first beacuse of deb will be clean when dsc build
|
||||
cp -r /tmp/$PKGDIR/* ./
|
||||
if [ "$dscflag" == "dsc" ];then
|
||||
cp -r /tmp/$PKGDIR/* ./
|
||||
fi
|
||||
else
|
||||
dpkg-buildpackage -b -us -uc ||errlog "build deb error"
|
||||
mv ../*.deb ../*.buildinfo ../*.changes ../*.dsc ../*.tar.* $PKGDIR
|
||||
|
||||
@ -11,7 +11,7 @@ exec_build_make(){
|
||||
make clean || echo ok
|
||||
echo "build deb in `pwd` "
|
||||
if [ $dscflag == "dsc" ];then
|
||||
make dsc || errlog "build dsc error"
|
||||
make dsc || "dsc build error but it is not fatal error"
|
||||
fi
|
||||
DEB_BUILD_OPTIONS=nocheck make deb || errlog "build deb error"
|
||||
}
|
||||
@ -29,4 +29,3 @@ errlog(){
|
||||
echo $1;
|
||||
exit 1;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user