public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Milos Malik <mmalik@redhat.com>
To: git-commits@fedoraproject.org
Subject: [tests/selinux] pr775-checkpolicy-revdeps: do not call epelyum when yum is missing
Date: Fri, 11 Sep 2026 13:20:54 GMT	[thread overview]
Message-ID: <178913285433.1.6873344121321579041.tests-selinux-f52d187782c5@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : tests/selinux
            Branch : pr775-checkpolicy-revdeps
            Commit : f52d187782c5466b8f312886fd39349e216d9dd0
            Author : Milos Malik <mmalik@redhat.com>
            Date   : 2023-07-24T16:04:07+00:00
            Stats  : +3/-4 in 2 file(s)
            URL    : https://src.fedoraproject.org/tests/selinux/c/f52d187782c5466b8f312886fd39349e216d9dd0?branch=pr775-checkpolicy-revdeps

            Log:
            do not call epelyum when yum is missing

There are environments where yum is not present. The epelyum function
is based on the yum command and if the yum command is not present,
it makes no sense to call the epelyum function.

---
diff --git a/selinux-policy/Library/common/lib.sh b/selinux-policy/Library/common/lib.sh
index 683ecc7..48bde49 100755
--- a/selinux-policy/Library/common/lib.sh
+++ b/selinux-policy/Library/common/lib.sh
@@ -1549,9 +1549,9 @@ function rlSESatisfyRequires() {
         return
     fi
 
-    which dnf yum >& /dev/null
-    if [ $? -eq 2 ] ; then
-        rlLog "Neither dnf nor yum is present. Don't know how to install required packages."
+    which yum >& /dev/null
+    if [ $? -ne 0 ] ; then
+        rlLog "The yum is not present. Don't know how to install required packages."
         return
     fi
 

diff --git a/selinux-policy/getrlimit-permission/main.fmf b/selinux-policy/getrlimit-permission/main.fmf
index b092bb7..a21832a 100644
--- a/selinux-policy/getrlimit-permission/main.fmf
+++ b/selinux-policy/getrlimit-permission/main.fmf
@@ -25,7 +25,6 @@ tag:
   - NoRHEL4
   - NoRHEL5
   - NoRHEL6
-  - TIPfail_Security
   - Tier1
   - Tier1se
   - f33friendly

                 reply	other threads:[~2026-09-11 13:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178913285433.1.6873344121321579041.tests-selinux-f52d187782c5@fedoraproject.org \
    --to=mmalik@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox