diff options
author | Khem Raj <raj.khem@gmail.com> | 2011-07-13 23:31:20 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-14 15:02:28 +0100 |
commit | 4678e7ac30a34f21991e8bf7fa50f09d0d282312 (patch) | |
tree | 854dc160f19d9d9f393da89c9961c01a37e13c57 | |
parent | 653f19543dbc5753b90eacb1c47febf726ed8171 (diff) | |
download | poky-4678e7ac30a34f21991e8bf7fa50f09d0d282312.tar.gz |
opkg-utils: Print out License field
(From OE-Core rev: 31d69f6e8c0a4b0a96568799ff398a31e15a158c)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-devtools/opkg-utils/opkg-utils/add-license-field.patch | 39 | ||||
-rw-r--r-- | meta/recipes-devtools/opkg-utils/opkg-utils_svn.bb | 3 |
2 files changed, 41 insertions, 1 deletions
diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils/add-license-field.patch b/meta/recipes-devtools/opkg-utils/opkg-utils/add-license-field.patch new file mode 100644 index 0000000000..0d3345972f --- /dev/null +++ b/meta/recipes-devtools/opkg-utils/opkg-utils/add-license-field.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | Add knowledge about License field in ipk headers | ||
2 | |||
3 | Upstream-Status: Pending | ||
4 | |||
5 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
6 | |||
7 | Index: opkg-utils/opkg.py | ||
8 | =================================================================== | ||
9 | --- opkg-utils.orig/opkg.py 2010-11-01 04:52:35.000000000 -0700 | ||
10 | +++ opkg-utils/opkg.py 2011-07-13 15:18:03.900037344 -0700 | ||
11 | @@ -145,6 +145,7 @@ | ||
12 | self.priority = None | ||
13 | self.tags = None | ||
14 | self.fn = fn | ||
15 | + self.license = None | ||
16 | |||
17 | if fn: | ||
18 | # see if it is deb format | ||
19 | @@ -319,6 +320,12 @@ | ||
20 | def get_section(self, section): | ||
21 | return self.section | ||
22 | |||
23 | + def set_license(self, license): | ||
24 | + self.license = license | ||
25 | + | ||
26 | + def get_license(self, license): | ||
27 | + return self.license | ||
28 | + | ||
29 | def get_file_list(self): | ||
30 | if not self.fn: | ||
31 | return [] | ||
32 | @@ -425,6 +432,7 @@ | ||
33 | if self.description: out = out + "Description: %s\n" % (self.description) | ||
34 | if self.oe: out = out + "OE: %s\n" % (self.oe) | ||
35 | if self.homepage: out = out + "HomePage: %s\n" % (self.homepage) | ||
36 | + if self.license: out = out + "License: %s\n" % (self.license) | ||
37 | if self.priority: out = out + "Priority: %s\n" % (self.priority) | ||
38 | if self.tags: out = out + "Tags: %s\n" % (self.tags) | ||
39 | out = out + "\n" | ||
diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils_svn.bb b/meta/recipes-devtools/opkg-utils/opkg-utils_svn.bb index 897fe113d2..fd2b5e693d 100644 --- a/meta/recipes-devtools/opkg-utils/opkg-utils_svn.bb +++ b/meta/recipes-devtools/opkg-utils/opkg-utils_svn.bb | |||
@@ -8,11 +8,12 @@ RDEPENDS_${PN} = "python" | |||
8 | RDEPENDS_${PN}_virtclass-native = "" | 8 | RDEPENDS_${PN}_virtclass-native = "" |
9 | SRCREV = "4747" | 9 | SRCREV = "4747" |
10 | PV = "0.1.8+svnr${SRCPV}" | 10 | PV = "0.1.8+svnr${SRCPV}" |
11 | PR = "r3" | 11 | PR = "r4" |
12 | 12 | ||
13 | SRC_URI = "svn://svn.openmoko.org/trunk/src/host/;module=opkg-utils;proto=http \ | 13 | SRC_URI = "svn://svn.openmoko.org/trunk/src/host/;module=opkg-utils;proto=http \ |
14 | file://index-ignore-filenotfound.patch \ | 14 | file://index-ignore-filenotfound.patch \ |
15 | file://mtime-int.patch \ | 15 | file://mtime-int.patch \ |
16 | file://add-license-field.patch \ | ||
16 | " | 17 | " |
17 | 18 | ||
18 | S = "${WORKDIR}/opkg-utils" | 19 | S = "${WORKDIR}/opkg-utils" |