Skip to content

Commit

Permalink
Fix snap/flatpak installs (#61)
Browse files Browse the repository at this point in the history
* this should fix autoflake stuff

* fixing when to install package from package group to include if not packages installed at all

* ticking up version
  • Loading branch information
jessebot authored Nov 7, 2022
1 parent 53fad3f commit 4a53bd7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions onboardme/config/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ pip3.10:
default:
# this is for python development
- flake8
- pyflakes
- autoflake
- pip
- build
- twine
Expand Down
5 changes: 2 additions & 3 deletions onboardme/pkg_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ def run_pkg_mngrs(pkg_mngrs=[], pkg_groups=[]):
if 'cleanup' in pkg_cmds:
subproc([pkg_cmds['cleanup']])
sub_header("[b]Cleanup[/b] step Completed.")
#
return


Expand All @@ -134,12 +133,12 @@ def install_pkg_group(installed_pkgs=[], pkgs_to_install=[], install_cmd=""):
if 'sudo' in install_cmd:
SPINNER = False

if 'upgrade' in install_cmd:
if 'upgrade' in install_cmd or not installed_pkgs:
install_pkg = True

for pkg in pkgs_to_install:
if installed_pkgs:
if pkg in installed_pkgs:
if pkg not in installed_pkgs:
install_pkg = True
if install_pkg:
subproc([install_cmd + pkg], quiet=True, spinner=SPINNER)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def readme():
lic_class],
python_requires='>3.10',
keywords='onboardme, onboarding, desktop-setup, setuptools, development',
version='0.14.13',
version='0.14.14',
project_urls={
'Documentation': 'https://jessebot.github.io/onboardme/onboardme',
'Source': 'http://github.com/jessebot/onboardme',
Expand Down

0 comments on commit 4a53bd7

Please sign in to comment.