backend/satellite_tools/repo_plugins/yum_src.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
New commits:
commit 650612da4c031c65ef69a94daacbaf5ea3d6507c
Author: Michael Mraka <michael.mraka(a)redhat.com>
Date: Wed Oct 24 11:09:03 2012 +0200
group file might be missing
fixing
ERROR: requested datatype group not available
Sync completed.
diff --git a/backend/satellite_tools/repo_plugins/yum_src.py
b/backend/satellite_tools/repo_plugins/yum_src.py
index 8cd390b..19f0b75 100644
--- a/backend/satellite_tools/repo_plugins/yum_src.py
+++ b/backend/satellite_tools/repo_plugins/yum_src.py
@@ -21,6 +21,7 @@ import os.path
import yum
from spacewalk.common import fileutils
+from yum.Errors import RepoMDError
from yum.config import ConfigParser
from yum.update_md import UpdateMetadata, UpdateNoticeException, UpdateNotice
from yum.yumRepo import YumRepository
@@ -242,4 +243,8 @@ class ContentSource(object):
return um.notices
def get_groups(self):
- return self.repo.getGroups()
+ try:
+ groups = self.repo.getGroups()
+ except RepoMDError:
+ groups = None
+ return groups
Show replies by date