Skip to content

Commit f2c34d8

Browse files
committed
examples: always add external repos via config.add_repo()
1 parent 283793d commit f2c34d8

4 files changed

Lines changed: 4 additions & 6 deletions

File tree

examples/eapi-usage

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ from collections import defaultdict
99
from pkgcraft.config import Config
1010
from pkgcraft.error import PkgcraftError
1111
from pkgcraft.logging import logger
12-
from pkgcraft.repo import EbuildRepo
1312

1413

1514
def main():
@@ -28,7 +27,7 @@ def main():
2827
try:
2928
config.load()
3029
if os.path.sep in args.repo:
31-
repo = EbuildRepo(args.repo)
30+
repo = config.add_repo(args.repo, external=True)
3231
else:
3332
repo = config.repos[args.repo]
3433
except PkgcraftError as e:

examples/leaf-pkgs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ from collections import defaultdict
99
from pkgcraft.config import Config
1010
from pkgcraft.error import PkgcraftError
1111
from pkgcraft.logging import logger
12-
from pkgcraft.repo import EbuildRepo
1312

1413

1514
def main():
@@ -28,7 +27,7 @@ def main():
2827
try:
2928
config.load()
3029
if os.path.sep in args.repo:
31-
repo = EbuildRepo(args.repo)
30+
repo = config.add_repo(args.repo, external=True)
3231
else:
3332
repo = config.repos[args.repo]
3433
except PkgcraftError as e:

examples/query

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def main():
6767
try:
6868
if args.repos:
6969
for path in args.repos:
70-
config.add_repo(path)
70+
config.add_repo(path, external=True)
7171
else:
7272
config.load()
7373
except PkgcraftError as e:

examples/revdeps

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def main():
3333
try:
3434
if args.repos:
3535
for path in args.repos:
36-
config.add_repo(path)
36+
config.add_repo(path, external=True)
3737
else:
3838
config.load()
3939
except PkgcraftError as e:

0 commit comments

Comments
 (0)