Skip to content

Commit aa17545

Browse files
authored
Merge pull request #1111 from yuvipanda/no-ppa
Say 'apt repository' rather than PPA
2 parents 4352535 + c04fff3 commit aa17545

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

repo2docker/buildpacks/r.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def get_packages(self):
177177
"lsb-release",
178178
]
179179
# For R 3.4 we use the default Ubuntu package, for other versions we
180-
# install from a different PPA
180+
# install from a different apt repository
181181
if V(self.r_version) < V("3.5"):
182182
packages.append("r-base")
183183
packages.append("r-base-dev")

tests/unit/test_r.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def test_install_from_base(tmpdir):
117117
assert "r-base" in r.get_packages()
118118

119119

120-
def test_install_from_ppa(tmpdir):
120+
def test_install_from_cran_apt_repo(tmpdir):
121121
# check that for R>3.4 we don't install r-base from Ubuntu
122122
tmpdir.chdir()
123123

@@ -128,7 +128,7 @@ def test_install_from_ppa(tmpdir):
128128
assert "r-base" not in r.get_packages()
129129

130130

131-
def test_custom_ppa(tmpdir):
131+
def test_custom_cran_apt_repo(tmpdir):
132132
tmpdir.chdir()
133133

134134
with open("runtime.txt", "w") as f:
@@ -138,12 +138,12 @@ def test_custom_ppa(tmpdir):
138138

139139
scripts = r.get_build_scripts()
140140

141-
# check that at least one of the build scripts adds this new PPA
141+
# check that at least one of the build scripts adds this new apt repository
142142
for user, script in scripts:
143143
if "https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/" in script:
144144
break
145145
else:
146-
assert False, "Should have added a new PPA"
146+
assert False, "Should have added a new apt repository"
147147

148148
# check that we install the right package
149149
for user, script in scripts:

0 commit comments

Comments
 (0)