Skip to content
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

Repair BIOS installation #310

Merged
merged 18 commits into from
May 17, 2024
Merged

Repair BIOS installation #310

merged 18 commits into from
May 17, 2024

Conversation

emcek
Copy link
Owner

@emcek emcek commented May 16, 2024

Description

Add button to Repair DCS-BIOS installation

@emcek emcek added the enhancement New feature or request label May 16, 2024
@emcek emcek added this to the Release 3.4.* milestone May 16, 2024
@emcek emcek self-assigned this May 16, 2024
@coveralls
Copy link

coveralls commented May 16, 2024

Coverage Status

coverage: 96.314%. remained the same
when pulling f6cc75e on bios_recovery
into c137dcc on master.

dcspy/qt_gui.py Fixed Show fixed Hide fixed
Copy link

sonarcloud bot commented May 17, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@emcek emcek merged commit a527209 into master May 17, 2024
26 of 27 checks passed
@emcek emcek deleted the bios_recovery branch May 17, 2024 22:53
from functools import partial
from importlib import import_module
from logging import getLogger
from pathlib import Path
from platform import architecture, python_implementation, python_version, uname
from pprint import pformat
from shutil import copy, copytree, rmtree, unpack_archive
from subprocess import run

Check warning

Code scanning / Bandit (reported by Codacy)

Consider possible security implications associated with the subprocess module. Warning

Consider possible security implications associated with the subprocess module.
"""
for old_bios_dir in DCS_BIOS_REPO_DIR.parent.iterdir():
if old_bios_dir.match(pattern) and old_bios_dir.is_dir():
proc = run(fr'attrib -R -H -S {old_bios_dir}\*.* /S /D'.split(' '), check=True, shell=False)

Check warning

Code scanning / Bandit (reported by Codacy)

subprocess call - check for execution of untrusted input. Warning

subprocess call - check for execution of untrusted input.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants