scripts: ipkg-remove: handle existing .ipk files without SourceName field
[openwrt/openwrt.git] / scripts / sysupgrade-tar.sh
index ca5577387d6837e0085995ae8a57368b8fe937ae..d1d627a96efb8b93fed445bfc365df32613502a1 100755 (executable)
@@ -61,7 +61,7 @@ if [ -n "$SOURCE_DATE_EPOCH" ]; then
        mtime="--mtime=@${SOURCE_DATE_EPOCH}"
 fi
 
-(cd "$tmpdir"; tar --sort=name -cvf sysupgrade.tar sysupgrade-${board} ${mtime})
+(cd "$tmpdir"; tar --sort=name --owner=0 --group=0 --numeric-owner -cvf sysupgrade.tar sysupgrade-${board} ${mtime})
 err="$?"
 if [ -e "$tmpdir/sysupgrade.tar" ]; then
        cp "$tmpdir/sysupgrade.tar" "$outfile"