If the same version is already installed, we should succeed, not fail.
Also, fix up the whitespace so diffs are easier to read.
Signed-off-by: Sage Weil <sage@inktank.com>
)
subprocess.check_call(
- args=['rpm', '-Uvh','--quiet', '{url}noarch/ceph-release-1-0.noarch.rpm'.format(
- url=url
- )]
+ args=[
+ 'rpm',
+ '-Uvh',
+ '--replacepkgs',
+ '--quiet',
+ '{url}noarch/ceph-release-1-0.noarch.rpm'.format(
+ url=url,
+ ),
+ ]
)
subprocess.check_call(
)
subprocess.check_call(
- args=['rpm', '-Uvh','--quiet', '{url}noarch/ceph-release-1-0.fc{release}.noarch.rpm'.format(
- url=url,
- release=release,
- )]
+ args=[
+ 'rpm',
+ '-Uvh',
+ '--replacepkgs',
+ '--quiet',
+ '{url}noarch/ceph-release-1-0.fc{release}.noarch.rpm'.format(
+ url=url,
+ release=release,
+ ),
+ ]
)
subprocess.check_call(
)
subprocess.check_call(
- args=['rpm', '-Uvh','--quiet', '{url}noarch/ceph-release-1-0.el6.noarch.rpm'.format(
- url=url
- )]
+ args=[
+ 'rpm',
+ '-Uvh',
+ '--replacepkgs',
+ '--quiet',
+ '{url}noarch/ceph-release-1-0.el6.noarch.rpm'.format(
+ url=url,
+ ),
+ ]
)
subprocess.check_call(