Browse Source

Merge pull request #20 from TheBlueMatt/master

Add the option to call a command after running in gitian-updater.
pull/22/head
Dev Random 10 years ago
parent
commit
69bd6a53fa
  1. 4
      share/gitian-updater

4
share/gitian-updater

@ -236,6 +236,7 @@ parser.add_argument('-q', '--quiet', action='append_const', const=1, default=[], @@ -236,6 +236,7 @@ parser.add_argument('-q', '--quiet', action='append_const', const=1, default=[],
parser.add_argument('-f', '--force', action='store_true', help='force downgrades and such')
parser.add_argument('-m', '--customize', metavar='OUTPUT', type=str, help='generate a customized version of the script with the given config')
parser.add_argument('-g', '--gpg', metavar='GPG', type=str, help='path to GnuPG')
parser.add_argument('-p', '--post', metavar='COMMAND', type=str, help='Run after a successful install')
args = parser.parse_args()
@ -389,3 +390,6 @@ if old_manifest: @@ -389,3 +390,6 @@ if old_manifest:
f = file(path.join(dest_path, '.gitian-manifest'), 'w')
yaml.dump(out_manifest, f)
f.close()
if args.post:
os.system(args.post)

Loading…
Cancel
Save