summaryrefslogtreecommitdiff
path: root/licensing/ebuild_license_hook.py
diff options
context:
space:
mode:
Diffstat (limited to 'licensing/ebuild_license_hook.py')
-rw-r--r--licensing/ebuild_license_hook.py15
1 files changed, 7 insertions, 8 deletions
diff --git a/licensing/ebuild_license_hook.py b/licensing/ebuild_license_hook.py
index 41e33d602..07fb7c12b 100644
--- a/licensing/ebuild_license_hook.py
+++ b/licensing/ebuild_license_hook.py
@@ -1,9 +1,8 @@
#!/usr/bin/python
-#
-# Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
+# Copyright 2014 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-#
+
"""Emerge hook to pre-parse and verify license information.
Called from src/scripts/hooks/install/gen-package-licenses.sh as part of a
@@ -12,16 +11,16 @@ package emerge.
from chromite.lib import commandline
-from chromite.licensing import licenses
+from chromite.licensing import licenses_lib
def main(args):
parser = commandline.ArgumentParser(usage=__doc__)
- parser.add_argument("--builddir", type="path", dest="builddir",
- help="Take $PORTAGE_BUILDDIR as argument.")
+ parser.add_argument('--builddir', type='path', dest='builddir',
+ help='Take $PORTAGE_BUILDDIR as argument.')
opts = parser.parse_args(args)
+ opts.Freeze()
-
- licensing = licenses.Licensing(None, None, True)
+ licensing = licenses_lib.Licensing(None, None, True)
licensing.HookPackageProcess(opts.builddir)