Jelajahi Sumber

Update opkginstall.patch

garypang13 4 tahun lalu
induk
melakukan
f867dc5020
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      devices/common/patches/opkginstall.patch

+ 1 - 1
devices/common/patches/opkginstall.patch

@@ -21,7 +21,7 @@
 +				sed -i "/Existing conffile/d" /tmp/opkg.err || true
 +				sed -i "/Couldn't unlink/d" /tmp/opkg.err || true
 +				sed -i "/pkg_hash_/d" /tmp/opkg.err || true
-+				[ "`cat /tmp/opkg.err`" == "Collected errors:" ] && rm -f /tmp/opkg.err || true
++				[[ "`cat /tmp/opkg.err`" =~ "^Collected errors:(\nCollected errors:){0,}$" ]] && rm -f /tmp/opkg.err || true
  				code=$?
  				stdout=$(cat /tmp/opkg.out)
  				stderr=$(cat /tmp/opkg.err)