#!/bin/bash
rpm_list=$(dnf repoquery --repo EPOL)
for rpm in ${rpm_list}; do
  depends_info=$(dnf repoquery --whatdepends ${rpm})
  if [[ ${depends_info} =~ ".src" && ${depends_info} =~ ".noarch" ]]; then
    echo "[INFO] rpm is ${rpm}"
    echo "[INFO] depeneds_info is ${depends_info}"
  fi
done
