From 6b1d5531304f4f87a78df9ab8661eb565145bf49 Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Thu, 27 Feb 2025 22:51:46 -0500
Subject: linhes-system: balance_storage_groups.py empty_storage_groups.py:
 change glob1 to glob

---
 linhes/linhes-system/PKGBUILD                  | 6 +++---
 linhes/linhes-system/balance_storage_groups.py | 2 +-
 linhes/linhes-system/empty_storage_groups.py   | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/linhes/linhes-system/PKGBUILD b/linhes/linhes-system/PKGBUILD
index e69e252..55ffa88 100755
--- a/linhes/linhes-system/PKGBUILD
+++ b/linhes/linhes-system/PKGBUILD
@@ -1,6 +1,6 @@
 pkgname=linhes-system
 pkgver=9.0.0
-pkgrel=91
+pkgrel=92
 arch=('x86_64')
 #install=$pkgname.install
 pkgdesc="Everything that makes LinHES a system"
@@ -27,8 +27,8 @@ source=($binfiles
     'system-sudo.rules' 'linhes-profile.sh' 'lh_sqlserver.cnf' 'lh_restart_needed.hook'
     'lh_system_start.sh.desktop' 'rc6_mce.toml' 'recordings.cron' 'rsyslog.mythtv.conf')
 sha256sums=('e6eaa2fb4819fa60cb05b4d2e7328d2914af3a73028a735ec4d56e7ece33ecc0'
-            '1115809a2d80c1ead7cfc5df05e1d6427255912a8303594574b3be23d3d3e4f1'
-            '97fe9e851c782fa9f85c5b69b110ccff2817dd4fa2a6d9ff6ee225dc558677e4'
+            '8ae6de3d0ff8e777aeea56f74f38676080142148ac3a32f828462d85c39e7cf7'
+            'bf72f364dfd6a694774ae0c998a737bf551057a2b3b427f58418854d3e9c785b'
             'ff261f41efec8a9963f9f59100cbe75f015028a2ed3a863ce0cb473f2ebb7b76'
             '8b54c31b8efde3917f603c5307bebb0a2a00239ad9a983c2f5d8120003256449'
             'ae34515e144830f424d3bd3f6b1b446892d62beed20bca6f0fb19b0bbb779f27'
diff --git a/linhes/linhes-system/balance_storage_groups.py b/linhes/linhes-system/balance_storage_groups.py
index d91da60..8776428 100755
--- a/linhes/linhes-system/balance_storage_groups.py
+++ b/linhes/linhes-system/balance_storage_groups.py
@@ -89,7 +89,7 @@ if __name__ == '__main__':
         for dir in SGDIRSdata:
             mostFull = SGDIRSdata[i]
             i=i+1
-            if len(glob.glob1(mostFull[0],"*.ts")) or len(glob.glob1(mostFull[0],"*.mpg")) or len(glob.glob1(mostFull[0],"*.nuv")):
+            if len(glob.glob(mostFull[0] + "*.ts")) or len(glob.glob(mostFull[0] + "*.mpg")) or len(glob.glob(mostFull[0] + "*.nuv")):
                 break
             else:
                 if i == 1:
diff --git a/linhes/linhes-system/empty_storage_groups.py b/linhes/linhes-system/empty_storage_groups.py
index 708c118..c181242 100755
--- a/linhes/linhes-system/empty_storage_groups.py
+++ b/linhes/linhes-system/empty_storage_groups.py
@@ -101,7 +101,7 @@ if __name__ == '__main__':
                 print("  " + directory + " - Not Mounted")
                 continue
             # Check if SG has data files to move
-            if len(glob.glob1(directory,"*.ts")) or len(glob.glob1(directory,"*.mpg")) or len(glob.glob1(directory,"*.nuv")) or len(glob.glob1(directory,"*.jpg")):
+            if len(glob.glob(directory + "*.ts")) or len(glob.glob(directory + "*.mpg")) or len(glob.glob(directory + "*.nuv")) or len(glob.glob(directory + "*.jpg")):
                 freePcent = getFreePercentForDir(directory)
                 freeSize = getFreeSpaceForDir(directory)
                 SGDIRSdata.append([directory, freePcent, freeSize])
@@ -114,7 +114,7 @@ if __name__ == '__main__':
                     sys.exit(0)
 
         # Exit if no SGs with data found
-        if SGcnt is 0:
+        if SGcnt == 0:
             print("\n'" + SGgrp + "' Storage Group directories have no files to move. Exiting.")
             sys.exit(0)
 
-- 
cgit v0.12

