Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
lbr38 committed Jul 16, 2024
1 parent 69af09f commit 4c849e3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build-deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,6 @@ jobs:
apt-get update -y
apt-get install -y ./linupdate-test-build_${{ env.VERSION }}_all.deb
- name: debug
run: ls -l /opt/linupdate/linupdate.py

- name: Launch linupdate
run: python3 /opt/linupdate/linupdate.py --check-updates

Expand Down Expand Up @@ -127,6 +124,9 @@ jobs:
apt-get update -y
apt-get install -y ./linupdate-test-build_${{ env.VERSION }}_all.deb
- name: Launch linupdate
run: python3 /opt/linupdate/linupdate.py --check-updates

# Try to install package on Ubuntu (latest)
install-ubuntu:
name: Install on Ubuntu (latest)
Expand All @@ -150,3 +150,6 @@ jobs:
run: |
sudo apt-get update -y
sudo apt-get install -y ./linupdate-test-build_${{ env.VERSION }}_all.deb
- name: Launch linupdate
run: python3 /opt/linupdate/linupdate.py --check-updates
3 changes: 2 additions & 1 deletion dependencies.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ python3-yaml
python3-dateutil
python3-simplejson
python3-distro
python3-apt


# rpm :
Expand All @@ -20,7 +21,7 @@ python3-yaml
python3-dateutil
python3-simplejson
python3-distro

python3-yum



Expand Down
1 change: 1 addition & 0 deletions src/controllers/Exit.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def cleanExit(self, exit_code = 0, send_mail: bool = True, logfile: str = None):

# Try to get mail settings
# It could fail if the config file is not found or if the mail section is not defined (e.g. first execution)
# So if it fails to retrieve configuration, just don't send the mail
try:
mail_enabled = my_config.getMailEnabled()
mail_recipient = my_config.getMailRecipient()
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/System.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def check(self):
#
#-------------------------------------------------------------------------------------------------------------------
def getOsFamily(self):
if (distro.name() in ['Debian', 'Ubuntu', 'Kubuntu', 'Xubuntu', 'Linux Mint']):
if (distro.name() in ['Debian GNU/Linux', 'Debian', 'Ubuntu', 'Kubuntu', 'Xubuntu', 'Linux Mint']):
return 'Debian'

if (distro.name() in ['Red Hat Enterprise Linux', 'Centos', 'CentOS Stream', 'Fedora', 'Alma Linux', 'Rocky Linux', 'Oracle Linux Server']):
Expand Down

0 comments on commit 4c849e3

Please sign in to comment.