Updating 'module_build_service/config.py' and adding 'python-mock' to Vagrantfile

This commit is contained in:
Courtney Pacheco
2016-10-26 04:21:01 -04:00
parent e68a4aa073
commit 3be788f602
2 changed files with 9 additions and 3 deletions

2
Vagrantfile vendored
View File

@@ -2,7 +2,7 @@
# vi: set ft=ruby :
$script = <<SCRIPT
dnf install -y python python-virtualenv python-devel libffi-devel redhat-rpm-config openssl-devel gcc gcc-c++ koji git swig fedmsg-relay rpm-build
dnf install -y python python-virtualenv python-devel libffi-devel redhat-rpm-config openssl-devel gcc gcc-c++ koji git swig fedmsg-relay rpm-build python-mock
pip install -r /opt/module_build_service/src/requirements.txt
pip install -r /opt/module_build_service/src/test-requirements.txt
cd /opt/module_build_service/src

View File

@@ -258,7 +258,10 @@ class Config(object):
@rpms_default_repository.setter
def rpms_default_repository(self, s):
self._rpms_default_repository = str(s)
rpm_repo = str(s)
if rpm_repo[-1] != '/':
rpm_repo = rpm_repo + '/'
self._rpms_default_repository = rpm_repo
@property
def rpms_allow_repository(self):
@@ -276,7 +279,10 @@ class Config(object):
@rpms_default_cache.setter
def rpms_default_cache(self, s):
self._rpms_default_cache = str(s)
rpm_cache = str(s)
if rpm_cache[-1] != '/':
rpm_cache = rpm_cache + '/'
self._rpms_default_cache = rpm_cache
@property
def rpms_allow_cache(self):