-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ccae104
commit 338f53c
Showing
4 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
if [ -f /tmp/old_newer ]; then | ||
/bin/rm /tmp/old_newer | ||
fi | ||
if [ -f /tmp/new_newer ]; then | ||
/bin/rm /tmp/new_newer | ||
fi | ||
for x in $(cat /tmp/endgame); do | ||
VER1_NAME=$(echo ${x} | cut -d'|' -f 1 | sed 's/^\(.*\)-\([^-]\{1,\}\)-\([^-]\{1,\}\)$/\1/') | ||
VER1_EPO=$(echo ${x} | cut -d'|' -f 1 | sed 's/^\(.*\)-\([^-]\{1,\}\)-\([^-]\{1,\}\)$/\2/' | cut -d':' -f1) | ||
VER1_VER=$(echo ${x} | cut -d'|' -f 1 | sed 's/^\(.*\)-\([^-]\{1,\}\)-\([^-]\{1,\}\)$/\2/') | ||
VER1_REL=$(echo ${x} | cut -d'|' -f 1 | sed 's/^\(.*\)-\([^-]\{1,\}\)-\([^-]\{1,\}\)$/\3/') | ||
VER2_NAME=$(echo ${x} | cut -d'|' -f 2 | sed 's/^\(.*\)-\([^-]\{1,\}\)-\([^-]\{1,\}\)$/\1/') | ||
VER2_EPO=$(echo ${x} | cut -d'|' -f 2 | sed 's/^\(.*\)-\([^-]\{1,\}\)-\([^-]\{1,\}\)$/\2/' | cut -d':' -f1) | ||
VER2_VER=$(echo ${x} | cut -d'|' -f 2 | sed 's/^\(.*\)-\([^-]\{1,\}\)-\([^-]\{1,\}\)$/\2/') | ||
VER2_REL=$(echo ${x} | cut -d'|' -f 2 | sed 's/^\(.*\)-\([^-]\{1,\}\)-\([^-]\{1,\}\)$/\3/') | ||
VER1=$(echo ${x} | cut -d'|' -f 1) | ||
VER2=$(echo ${x} | cut -d'|' -f 2) | ||
rpmdev-vercmp ${VER1_EPO} ${VER1_VER} ${VER1_REL} ${VER2_EPO} ${VER2_VER} ${VER2_REL} 2>&1 > /dev/null | ||
ret_val=$? | ||
if [[ "$ret_val" -eq "11" ]]; then | ||
echo ${VER1} >> /tmp/old_newer | ||
fi | ||
if [[ "$ret_val" -eq "12" ]]; then | ||
echo ${VER2} >> /tmp/new_newer | ||
fi | ||
done | ||
|
||
echo "Files generated: /tmp/old_newer /tmp/new_newer" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
diff -y /tmp/list_a /tmp/list_b | grep '|' > /tmp/diffs | ||
sed -e 's/\t//g' -e 's/ //g' /tmp/diffs > /tmp/endgame | ||
echo "Cleaned table in /tmp/endgame" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
OLD_REPO="https://yumrepofs.build.resf.org/v1/projects/dff20351-7d36-4f7c-9eea-7f039f5026d0/repo/all/src" | ||
NEW_REPO="https://yumrepofs.build.resf.org/v1/projects/6202c09e-6252-4d3a-bcd3-9c7751682970/repo/all/src" | ||
|
||
dnf repoquery --repofrompath=p,${OLD_REPO} --disablerepo=* --enablerepo=p -q -a --qf '%{NAME}-%{EPOCH}:%{VERSION}-%{RELEASE}' > /tmp/list_a | ||
|
||
dnf repoquery --repofrompath=q,${NEW_REPO} --disablerepo=* --enablerepo=q -q -a --qf '%{NAME}-%{EPOCH}:%{VERSION}-%{RELEASE}' > /tmp/list_b | ||
|
||
echo "Please manually compare to check for brand new or obsoleted packages" |