verified
[root@cloud-qe-12 ~]# rpm -qa pulp-server
pulp-server-2.6.1-0.2.beta.el6.noarch
[root@cloud-qe-12 ~]#
2015-04-02 10:58:39,272 - INFO - POST request to /pulp/api/v2/repositories/upload/search/units/ with parameters {"criteria": {"type_ids": ["rpm"], "filters": {"unit": {"name": {"$regex": "camel"}}}}}
2015-04-02 10:58:39,273 - INFO - Response status : 200
2015-04-02 10:58:39,273 - INFO - Response body :
[
{
"updated": "2015-04-02T14:50:42Z",
"repo_id": "upload",
"created": "2015-04-02T14:50:42Z",
"_ns": "repo_content_units",
"unit_id": "7a6593b6-400b-4165-9308-3ed43b82ad23",
"owner_id": "SYSTEM",
"unit_type_id": "rpm",
"owner_type": "user",
"_id": {
"$oid": "551d574253173a08a251abf4"
},
"id": "551d574253173a08a251abf4",
"metadata": {
"build_time": 1331831360,
"buildhost": "smqe-ws15",
"_content_type_id": "rpm",
"vendor": null,
"_ns": "units_rpm",
"release_sort_index": "01-1",
"filename": "camel-0.1-1.noarch.rpm",
"epoch": "0",
"version": "0.1",
"version_sort_index": "01-0.01-1",
"provides": [
{
"release": "1",
"epoch": "0",
"version": "0.1",
"flags": "EQ",
"name": "camel"
}
],
"repodata": {
"filelists": "\n<package pkgid=\"82e497ca3e7affb5682362b50537af290d0a202e4ad00b6ef62357a2cc9819ba\" name=\"camel\" arch=\"noarch\">\n <version epoch=\"0\" ver=\"0.1\" rel=\"1\"/>\n\n <file>/tmp/camel.txt</file>\n</package>\n",
"other": "\n<package pkgid=\"82e497ca3e7affb5682362b50537af290d0a202e4ad00b6ef62357a2cc9819ba\" name=\"camel\" arch=\"noarch\">\n <version epoch=\"0\" ver=\"0.1\" rel=\"1\"/>\n\n</package>\n",
"primary": "\n<package type=\"rpm\">\n <name>camel</name>\n <arch>noarch</arch>\n <version epoch=\"0\" ver=\"0.1\" rel=\"1\"/>\n <checksum type=\"sha256\" pkgid=\"YES\">82e497ca3e7affb5682362b50537af290d0a202e4ad00b6ef62357a2cc9819ba</checksum>\n <summary>A dummy package of camel</summary>\n <description>A dummy package of camel</description>\n <packager></packager>\n <url>http://tstrachota.fedorapeople.org</url>\n <time file=\"1427986241\" build=\"1331831360\"/>\n <size package=\"2439\" installed=\"42\" archive=\"296\"/>\n<location href=\"camel-0.1-1.noarch.rpm\"/>\n <format>\n <rpm:license>GPLv2</rpm:license>\n <rpm:vendor/>\n <rpm:group>Internet/Applications</rpm:group>\n <rpm:buildhost>smqe-ws15</rpm:buildhost>\n <rpm:sourcerpm>camel-0.1-1.src.rpm</rpm:sourcerpm>\n <rpm:header-range start=\"872\" end=\"2289\"/>\n <rpm:provides>\n <rpm:entry name=\"camel\" flags=\"EQ\" epoch=\"0\" ver=\"0.1\" rel=\"1\"/>\n </rpm:provides>\n </format>\n</package>"
},
"description": "A dummy package of camel",
"_last_updated": 1427986242,
"time": 1427986241,
"arch": "noarch",
"checksumtype": "sha256",
"_storage_path": "/var/lib/pulp/content/rpm/camel/0.1/1/noarch/82e497ca3e7affb5682362b50537af290d0a202e4ad00b6ef62357a2cc9819ba/camel-0.1-1.noarch.rpm",
"name": "camel",
"license": "GPLv2",
"relativepath": "camel-0.1-1.noarch.rpm",
"checksum": "82e497ca3e7affb5682362b50537af290d0a202e4ad00b6ef62357a2cc9819ba",
"release": "1",
"checksum_type": null,
"_id": "7a6593b6-400b-4165-9308-3ed43b82ad23",
"requires": []
}
}
]
638 - Process build_time & time values for uploaded RPMs
The build_time & time values for uploaded rpms have not been saved on the model and they are being saved for synced rpms. Update the processing code to calculate these values upon upload.
closes #638