1 |
diff -Nur smeserver-yum-2.6.0.old/root/sbin/e-smith/yum_update_dbs smeserver-yum-2.6.0/root/sbin/e-smith/yum_update_dbs |
diff -Nur smeserver-yum-2.6.0.old/root/sbin/e-smith/yum_update_dbs smeserver-yum-2.6.0/root/sbin/e-smith/yum_update_dbs |
2 |
--- smeserver-yum-2.6.0.old/root/sbin/e-smith/yum_update_dbs 2008-10-07 10:25:45.000000000 -0400 |
--- smeserver-yum-2.6.0.old/root/sbin/e-smith/yum_update_dbs 2008-10-07 10:25:45.000000000 -0400 |
3 |
+++ smeserver-yum-2.6.0/root/sbin/e-smith/yum_update_dbs 2019-12-05 10:46:46.695000000 -0500 |
+++ smeserver-yum-2.6.0/root/sbin/e-smith/yum_update_dbs 2019-12-05 20:32:00.867000000 -0500 |
4 |
@@ -35,6 +35,9 @@ |
@@ -44,6 +44,9 @@ |
5 |
unlink YUM_CRON_FLAG; |
|
6 |
} |
use constant YUM_CMD => "/usr/bin/yum -d 0 -e 0 "; |
7 |
|
|
8 |
+# avoid error with no installed groups file. |
+# avoid error with no installed groups file. |
9 |
+system("yum groups mark convert -d 0 -e 0 1>/dev/null") unless (-d "/var/lib/yum/groups/"); |
+system("YUM_CMD groups mark convert -d 0 -e 0 1>/dev/null") unless (-d "/var/lib/yum/groups/"); |
10 |
+ |
+ |
11 |
# XXX - WARNING - XXX |
my $tmp_file; |
12 |
# |
|
13 |
# For speed and to reduce log noise, we don't use |
END { $tmp_file and -f $tmp_file and unlink $tmp_file; } |