scripts/ipkg-build: quash error messages when conffiles.resolved is empty
[openwrt/openwrt.git] / scripts / ipkg-build
index d38ba20af30cee4b0843c64b40f5f101e218d411..21127f33910cabb82f6b025a1865f305c88b9c10 100755 (executable)
@@ -64,8 +64,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