summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package.xml2
-rw-r--r--rpminfo.c1
-rw-r--r--tests/003-rpminfo.phpt4
-rw-r--r--tests/007-rpmdbinfo.phpt4
4 files changed, 8 insertions, 3 deletions
diff --git a/package.xml b/package.xml
index 7250f64..da3ba11 100644
--- a/package.xml
+++ b/package.xml
@@ -26,7 +26,7 @@ Available functions:
</stability>
<license>PHP 3.01</license>
<notes>
--
+- add summary in minimal information set
</notes>
<contents>
<dir name="/">
diff --git a/rpminfo.c b/rpminfo.c
index 2eb0cdc..a044125 100644
--- a/rpminfo.c
+++ b/rpminfo.c
@@ -61,6 +61,7 @@ static void rpm_header_to_zval(zval *return_value, Header h, zend_bool full)
case RPMTAG_RELEASE:
case RPMTAG_EPOCH:
case RPMTAG_ARCH:
+ case RPMTAG_SUMMARY:
break;
default:
if (!full) {
diff --git a/tests/003-rpminfo.phpt b/tests/003-rpminfo.phpt
index f878c7f..e5e01ab 100644
--- a/tests/003-rpminfo.phpt
+++ b/tests/003-rpminfo.phpt
@@ -8,13 +8,15 @@ var_dump(rpminfo(__DIR__ . "/bidon.rpm"));
?>
Done
--EXPECTF--
-array(4) {
+array(5) {
["Name"]=>
string(5) "bidon"
["Version"]=>
string(1) "1"
["Release"]=>
string(11) "1.fc25.remi"
+ ["Summary"]=>
+ string(5) "Bidon"
["Arch"]=>
string(6) "x86_64"
}
diff --git a/tests/007-rpmdbinfo.phpt b/tests/007-rpmdbinfo.phpt
index 6ef5aa1..6fe3116 100644
--- a/tests/007-rpmdbinfo.phpt
+++ b/tests/007-rpmdbinfo.phpt
@@ -12,13 +12,15 @@ Done
bool(false)
array(1) {
[0]=>
- array(4) {
+ array(5) {
["Name"]=>
string(4) "bash"
["Version"]=>
string(%d) "%s"
["Release"]=>
string(%d) "%s"
+ ["Summary"]=>
+ string(26) "The GNU Bourne Again shell"
["Arch"]=>
string(%d) "%s"
}