diff options
| author | Ross Burton <ross.burton@arm.com> | 2023-03-31 14:09:11 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-04-03 11:39:59 +0100 |
| commit | 1c3c56ca199921e29534a0fc2e2e4e365bf0fb7d (patch) | |
| tree | b66002cab0d77e3cc641e1914df76cc76b8cea52 /meta/lib/oeqa/runtime/cases/apt.py | |
| parent | 13cc2d67e773b11be8d149252505061879c46ff8 (diff) | |
| download | poky-1c3c56ca199921e29534a0fc2e2e4e365bf0fb7d.tar.gz | |
oeqa/runtime: clean up deprecated backslash expansion
(From OE-Core rev: 77085a05240c3f8226b9f2199c977f2555807789)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/runtime/cases/apt.py')
| -rw-r--r-- | meta/lib/oeqa/runtime/cases/apt.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/runtime/cases/apt.py b/meta/lib/oeqa/runtime/cases/apt.py index 4e09374add..8000645843 100644 --- a/meta/lib/oeqa/runtime/cases/apt.py +++ b/meta/lib/oeqa/runtime/cases/apt.py | |||
| @@ -39,9 +39,9 @@ class AptRepoTest(AptTest): | |||
| 39 | self.target.run('cd %s; echo deb [ allow-insecure=yes ] %s/all ./ > sources.list' % (apt_get_sourceslist_dir, apt_get_source_server)) | 39 | self.target.run('cd %s; echo deb [ allow-insecure=yes ] %s/all ./ > sources.list' % (apt_get_sourceslist_dir, apt_get_source_server)) |
| 40 | 40 | ||
| 41 | def setup_source_config_for_package_install_signed(self): | 41 | def setup_source_config_for_package_install_signed(self): |
| 42 | apt_get_source_server = 'http:\/\/%s:%s' % (self.tc.target.server_ip, self.repo_server.port) | 42 | apt_get_source_server = 'http://%s:%s' % (self.tc.target.server_ip, self.repo_server.port) |
| 43 | apt_get_sourceslist_dir = '/etc/apt/' | 43 | apt_get_sourceslist_dir = '/etc/apt/' |
| 44 | self.target.run("cd %s; cp sources.list sources.list.bak; sed -i 's/\[trusted=yes\] http:\/\/bogus_ip:bogus_port/%s/g' sources.list" % (apt_get_sourceslist_dir, apt_get_source_server)) | 44 | self.target.run("cd %s; cp sources.list sources.list.bak; sed -i 's|\[trusted=yes\] http://bogus_ip:bogus_port|%s|g' sources.list" % (apt_get_sourceslist_dir, apt_get_source_server)) |
| 45 | 45 | ||
| 46 | def cleanup_source_config_for_package_install(self): | 46 | def cleanup_source_config_for_package_install(self): |
| 47 | apt_get_sourceslist_dir = '/etc/apt/' | 47 | apt_get_sourceslist_dir = '/etc/apt/' |
