diff options
Diffstat (limited to 'scripts/g-octave')
-rwxr-xr-x | scripts/g-octave | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/scripts/g-octave b/scripts/g-octave index 69ac115..89fb1d1 100755 --- a/scripts/g-octave +++ b/scripts/g-octave @@ -48,6 +48,8 @@ current_dir = os.path.dirname(os.path.realpath(__file__)) if os.path.exists(os.path.join(current_dir, '..', 'g_octave')): sys.path.insert(0, os.path.join(current_dir, '..')) +from g_octave.checksum import sha1_check_db +from g_octave.description_tree import DescriptionTree from g_octave.log import Log log = Log('g-octave') @@ -281,7 +283,14 @@ def main(): log.info('No updates available') out.einfo('No updates available') updates.extract() - + + log.info('Checking SHA1 checksums ...') + out.ebegin('Checking SHA1 checksums ...') + if sha1_check_db(DescriptionTree()): + out.eend(0) + else: + out.eend(1) + return os.EX_OK else: log.info('You can\'t fetch package databases.') @@ -293,7 +302,6 @@ def main(): conf = Config() from g_octave.description import Description - from g_octave.description_tree import DescriptionTree from g_octave.ebuild import Ebuild, EbuildException from g_octave.overlay import create_overlay |