-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add cleanup_32bit.py tool #2983
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2983 +/- ##
=========================================
Coverage ? 28.87%
=========================================
Files ? 85
Lines ? 14516
Branches ? 0
=========================================
Hits ? 4191
Misses ? 10325
Partials ? 0 ☔ View full report in Codecov by Sentry. |
cleanup_32bit.py
Outdated
def run(self, prj: str, arch: str): | ||
Config(self.apiurl, prj) | ||
cr = CleanupRings(StagingAPI(self.apiurl, prj)) | ||
cr.whitelist = set(["wine", "wine-nine-standalone", "wine:staging"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needed or requiredset perhaps? whitelist is pretty generic ( and non inclusive) terminology . And it's not a list but a set..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's actually a list in CleanupRings still, can be changed in a later refactor commit after I got this one working
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a dict now with more info, renamed to force_required
cleanup_32bit.py
Outdated
for providedby in fileinfo.findall('requires_ext/providedby[@name]'): | ||
name = providedby.get('name') | ||
# Those are not built as i586 | ||
if "libgcc" in name or "libstdc++" in name: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe 'startswith'?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed
Only used for the old Leap setup. The concept would still work for TW, but baselibs.conf is not enough of an indication (anymore?) whether it needs to be built.
This uses code from cleanup_rings to figure out which packages are needed for a 32bit build and runtime environment for steam and wine.
552e0b1
to
b1666ce
Compare
This uses code from cleanup_rings to figure out which packages are needed
for a 32bit build and runtime environment for steam and wine.
Draft because the API in cleanup_rings had to be changed and that broke cleanup_rings.