# HG changeset patch # User Christopher Rogers # Date 1303847224 0 # Node ID 2010b1abc2104cbf059d01e1019ef4659ce9425e # Parent cb6aa83b04c66a19bb428d8fd347d02b27745619 linux: Fixed check_modules.sh script. It only cats files.list if linux-libre is not greped in receipt. diff -r cb6aa83b04c6 -r 2010b1abc210 linux/stuff/check_modules.sh --- a/linux/stuff/check_modules.sh Tue Apr 26 17:57:44 2011 +0000 +++ b/linux/stuff/check_modules.sh Tue Apr 26 19:47:04 2011 +0000 @@ -24,20 +24,22 @@ for i in $(cd $WOK; ls -d linux-*) do tazpath="taz/$i-$VERSION" - for j in $(cat $WOK/$i/$tazpath/files.list | grep ".ko.gz") - do - basename $j >> $WOK/$PACKAGE/tmp/pkgs-modules-"$VERSION".list - done + if [ -f $WOK/$i/$tazpath/files.list ]; then + for j in $(cat $WOK/$i/$tazpath/files.list | grep ".ko.gz") + do + basename $j >> $WOK/$PACKAGE/tmp/pkgs-modules-"$VERSION".list + done + fi done # get the original list in .config -for i in $(find $_pkg -iname "*.ko.gz") +for i in $(find $_pkg -iname "*.ko.gz") do basename $i >> $WOK/$PACKAGE/tmp/originial-"$VERSION".list done # compare original .config and pkged modules -for i in $(cat $WOK/$PACKAGE/tmp/originial-$VERSION.list) -do - if ! grep -qs "$i" $WOK/$PACKAGE/tmp/pkgs-modules-"$VERSION".list ; then +for i in $(cat $WOK/$PACKAGE/tmp/originial-$VERSION.list) +do + if ! grep -qs "$i" $WOK/$PACKAGE/tmp/pkgs-modules-"$VERSION".list ; then modpath=`find $_pkg -iname "$i"` echo "Orphan module: $i" echo "$i : $modpath" >> $WOK/$PACKAGE/tmp/unpackaged-modules-"$VERSION".list