Skip to content

Commit

Permalink
fix apt_preferences
Browse files Browse the repository at this point in the history
  • Loading branch information
greedybro committed Apr 5, 2024
1 parent 7cd28bd commit c268f88
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion plugins/lookup/apt_preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def run(self, terms, variables=None, **kwargs):
.get(repositoryPattern)
.get(
'pin',
'origin ' + generic_urlparse(urlparse(
'origin %s' % generic_urlparse(urlparse(
repositoriesPatterns
.get(repositoryPattern)
.get('uris')
Expand Down
12 changes: 6 additions & 6 deletions tests/unit/plugins/lookup/test_apt_preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ def test_short_syntax(self):
'bar.bar': 'bar bar',
},
{
'foo': {'source': 'foo'},
'bar.bar': {'source': 'bar'},
'baz': {'source': 'baz'},
'qux': {'source': 'qux'},
'foo': {'uris': 'http://foo', 'suites': 'foo/'},
'bar.bar': {'uris': 'https://bar', 'suites': 'bar/'},
'baz': {'uris': 'http://baz', 'suites': 'baz/'},
'qux': {'uris': 'http://qux', 'suites': 'qux/'},
},
[],
'',
Expand All @@ -147,8 +147,8 @@ def test_pattern_syntax(self):
],
{},
{
'foo': {'source': 'foo'},
'bar': {'source': 'bar'},
'foo': {'uris': 'http://foo', 'suites': 'foo/'},
'bar': {'uris': 'bar', 'suites': 'bar/'},
},
[],
'',
Expand Down

0 comments on commit c268f88

Please sign in to comment.