Skip to content
This repository has been archived by the owner on Feb 18, 2023. It is now read-only.

Commit

Permalink
Add stub verify method.
Browse files Browse the repository at this point in the history
I was going to implement gnupg, but the python bindings for it are GPL
licensed. I need to find an appropriately-licensed alternative.

This verify method does no actual verification.

Related #4
  • Loading branch information
John Marion committed Nov 20, 2017
1 parent 6d9a459 commit cb4e6ef
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions golddust/packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@


import json
import warnings


"""GoldDust Packages Classes/Utilities
Expand Down Expand Up @@ -65,6 +66,15 @@ def from_package_file(cls, file):
# TODO: Dependencies
return package

def verify(self):
"""Verify the integrity of this package.
This verifies the package tarball using its detached PGP signature.
"""
warnings.warn("Package verification is not yet implemented. "
"You are working with an unverified package.")
return True


class InstallScript:
"""Package pre/post install action script.
Expand Down

0 comments on commit cb4e6ef

Please # to comment.