File tree Expand file tree Collapse file tree 3 files changed +2
-4
lines changed
Expand file tree Collapse file tree 3 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 66import os
77import shutil
88import sys
9+ import warnings
910
1011from soufi import exceptions , finder
1112
1516except ImportError :
1617 sys .exit ("CLI support not installed; please install soufi[cli]" )
1718
19+ warnings .formatwarning = lambda msg , * x , ** y : f'WARNING: { msg } \n '
1820
1921# Configure a small-ish in-memory LRU cache to speed up operations
2022LRU_CACHE = pylru .lrucache (size = 512 )
Original file line number Diff line number Diff line change 1515
1616from soufi import exceptions , finder
1717
18- warnings .formatwarning = lambda msg , * x , ** y : f'WARNING: { msg } \n '
19-
2018# Shell snippet that will source an APKBUILD and spit out the vars that we
2119# need. CARCH is set to work around a bug in 3.12.0 scripts. CTARGET_ARCH
2220# is needed for more complex scripts like `community/go`.
Original file line number Diff line number Diff line change 1818
1919from soufi import exceptions , finder
2020
21- warnings .formatwarning = lambda msg , * x , ** y : f"WARNING: { msg } \n "
22-
2321
2422class YumFinder (finder .SourceFinder , metaclass = abc .ABCMeta ):
2523 """An abstract base class for making Yum-based finders.
You can’t perform that action at this time.
0 commit comments