iot-hal-backend.post: Remove unused hal-backend dependency ini files 37/320737/2
authorChanwoo Choi <cw00.choi@samsung.com>
Thu, 21 Nov 2024 12:18:21 +0000 (21:18 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Fri, 22 Nov 2024 01:23:48 +0000 (10:23 +0900)
hal-backend dependency init files have not used anymore to check
the HAL compatibility between platform and HAL because HAL ABI
compatibility is checed by hal-rootstrap-checker.
So that  remove unused hal-backend dependency ini files

Change-Id: I7d2a27c62081025450a1df8674f905e2f35505cb
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
scripts/iot-hal-backend.post

index 2ac38f45d44b79500268b3de27a2b8224b8c1b80..3b387c6a4642d7562affd7201f967c7b2470ea17 100644 (file)
@@ -37,7 +37,6 @@ create_backend_dependency_file() {
 
        PKG=`/usr/bin/rpm -qa`
        /usr/bin/mkdir -p /hal/temp
-       /usr/bin/mkdir -p /hal/etc/rpm/
 
        for packages in ${PKG}; do
                /usr/bin/rpm -qP $packages > /hal/temp/${packages}
@@ -47,24 +46,6 @@ create_backend_dependency_file() {
                /usr/bin/grep -lr $lists /hal/temp/ | /bin/sed "s/\/hal\/temp\\///" >> /hal/list/hal-backend-list.ini
        done
 
-       while read line; do
-               /usr/bin/rpm -qR --qf "%{NAME} [%{REQUIRENAME} %{REQUIREVERSION}] " $line | /bin/grep -v "\/bin\/" | /bin/grep -v "rpmlib" | /bin/grep -v "\/sbin\/" | /bin/grep -v "config(" > /hal/list/${line}.ini
-       done < /hal/list/hal-backend-list.ini
-
-       LIST=`/usr/bin/ls /hal/list/`
-       for lists in ${LIST}; do
-               while read line; do
-                       /usr/bin/grep -lr $line /hal/temp/ | /bin/sed "s/\/hal\/temp\\///" >> /hal/etc/rpm/temp.ini
-               done < /hal/list/$lists
-
-               if [ -e /hal/etc/rpm/temp.ini ]; then
-                       /usr/bin/sort -u /hal/etc/rpm/temp.ini > /hal/etc/rpm/$lists
-                       /usr/bin/rm /hal/etc/rpm/temp.ini
-               else
-                       /usr/bin/touch /hal/etc/rpm/$lists
-               fi
-       done
-
        for packages in ${PKG}; do
                FOUND=0
                while read line; do