scripts/ipkg-build: quash error messages when conffiles.resolved is empty
[openwrt/openwrt.git] / scripts / ipkg-build
index 845a6ed04e63293e353aa4c6b6d8188a1184fb88..e42da2ecbc8605c038bb457d818496514d83d537 100755 (executable)
@@ -60,8 +60,10 @@ pkg_appears_sane() {
                done
 
                rm $CONTROL/conffiles
-               mv $CONTROL/conffiles.resolved $CONTROL/conffiles
-               chmod 0644 $CONTROL/conffiles
+               if [ -f $CONTROL/conffiles.resolved ]; then
+                       mv $CONTROL/conffiles.resolved $CONTROL/conffiles
+                       chmod 0644 $CONTROL/conffiles
+               fi
        fi
 
        cd $owd