Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 21107 Details for
Bug 17367
ACCEPT_LICENSE support required
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Basic implementation of license checking (Doesn't include * or -license)
licenses.patch (text/plain), 1.60 KB, created by
Jason Stubbs (RETIRED)
on 2003-11-22 17:41:07 UTC
(
hide
)
Description:
Basic implementation of license checking (Doesn't include * or -license)
Filename:
MIME Type:
Creator:
Jason Stubbs (RETIRED)
Created:
2003-11-22 17:41:07 UTC
Size:
1.60 KB
patch
obsolete
>--- emerge.orig 2003-11-03 00:25:09.000000000 +0900 >+++ emerge.new 2003-11-23 02:42:53.978695912 +0900 >@@ -1911,7 +1911,7 @@ > myvars=['GENTOO_MIRRORS', 'CONFIG_PROTECT', 'CONFIG_PROTECT_MASK', > 'PORTDIR', 'DISTDIR', 'PKGDIR', 'PORTAGE_TMPDIR', 'PORTDIR_OVERLAY', > 'USE', 'COMPILER', 'CHOST', 'CFLAGS', 'CXXFLAGS','ACCEPT_KEYWORDS', >- 'MAKEOPTS', 'AUTOCLEAN', 'SYNC', 'FEATURES'] >+ 'MAKEOPTS', 'AUTOCLEAN', 'SYNC', 'FEATURES', 'ACCEPT_LICENSES'] > myvars.sort() > for x in myvars: > print x+'="'+portage.settings[x]+'"' >@@ -2120,6 +2120,28 @@ > if ("--usepkgonly" in myopts) and mydepgraph.missingbins: > sys.stderr.write(red("The following binaries are not available for merging...\n")) > >+ accept_licenses = string.split(portage.settings['ACCEPT_LICENSES']) >+ print accept_licenses >+ all_licenses_accepted = 1 >+ for pkg in mydepgraph.altlist(): >+ pkg_licenses = portage.portdb.aux_get(pkg[2], ["LICENSE"])[0] >+ for license_group in string.split(pkg_licenses,"|"): >+ license_accepted = 1 >+ for license in string.split(license_group): >+ try: >+ temp = accept_licenses.index(license) >+ except Exception,e: >+ license_accepted = 0 >+ if license_accepted == 1: >+ break >+ if license_accepted == 0: >+ print "\n!!! License(s) " + string.replace(pkg_licenses, "|", "or") + " required by " + pkg[2] >+ print "!!! has not been accepted. Please review and add to ACCEPT_LICENSES." >+ all_licenses_accepted = 0 >+ if all_licenses_accepted == 0: >+ print >+ sys.exit(1) >+ > if mydepgraph.missingbins: > for x in mydepgraph.missingbins: > sys.stderr.write(" "+str(x)+"\n")
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 17367
:
21107
|
21265
|
21296
|
59091
|
100120