Mailinglist Archive: zypp-commit (223 mails)

< Previous Next >
[zypp-commit] r10552 - in /trunk/sat-solver/tools: repo_rpmdb.c repo_rpmmd.c
  • From: mlschroe@xxxxxxxxxxxxxxxx
  • Date: Fri, 11 Jul 2008 20:34:23 -0000
  • Message-id: <20080711203423.945602F1F2@xxxxxxxxxxxxxxxx>
Author: mlschroe
Date: Fri Jul 11 22:34:23 2008
New Revision: 10552

URL: http://svn.opensuse.org/viewcvs/zypp?rev=10552&view=rev
Log:
- set packager/distribution

Modified:
trunk/sat-solver/tools/repo_rpmdb.c
trunk/sat-solver/tools/repo_rpmmd.c

Modified: trunk/sat-solver/tools/repo_rpmdb.c
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/tools/repo_rpmdb.c?rev=10552&r1=10551&r2=10552&view=diff
==============================================================================
--- trunk/sat-solver/tools/repo_rpmdb.c (original)
+++ trunk/sat-solver/tools/repo_rpmdb.c Fri Jul 11 22:34:23 2008
@@ -39,10 +39,13 @@
#define TAG_SUMMARY 1004
#define TAG_DESCRIPTION 1005
#define TAG_BUILDTIME 1006
+#define TAG_BUILDHOST 1007
#define TAG_INSTALLTIME 1008
#define TAG_SIZE 1009
+#define TAG_DISTRIBUTION 1010
#define TAG_VENDOR 1011
#define TAG_LICENSE 1014
+#define TAG_PACKAGER 1015
#define TAG_GROUP 1016
#define TAG_URL 1020
#define TAG_ARCH 1022
@@ -900,6 +903,12 @@
str = headstring(rpmhead, TAG_URL);
if (str)
repodata_set_str(repodata, handle, SOLVABLE_URL, str);
+ str = headstring(rpmhead, TAG_DISTRIBUTION);
+ if (str)
+ repodata_set_poolstr(repodata, handle, SOLVABLE_DISTRIBUTION, str);
+ str = headstring(rpmhead, TAG_PACKAGER);
+ if (str)
+ repodata_set_poolstr(repodata, handle, SOLVABLE_PACKAGER, str);
u32 = headint32(rpmhead, TAG_BUILDTIME);
if (u32)
repodata_set_num(repodata, handle, SOLVABLE_BUILDTIME, u32);

Modified: trunk/sat-solver/tools/repo_rpmmd.c
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/tools/repo_rpmmd.c?rev=10552&r1=10551&r2=10552&view=diff
==============================================================================
--- trunk/sat-solver/tools/repo_rpmmd.c (original)
+++ trunk/sat-solver/tools/repo_rpmmd.c Fri Jul 11 22:34:23 2008
@@ -39,6 +39,7 @@
/* resobject attributes */
STATE_SUMMARY,
STATE_DESCRIPTION,
+ STATE_PACKAGER,
STATE_URL,
STATE_INSNOTIFY,
STATE_DELNOTIFY,
@@ -149,6 +150,7 @@
{ STATE_SOLVABLE, "summary", STATE_SUMMARY, 1 },
{ STATE_SOLVABLE, "description", STATE_DESCRIPTION, 1 },
{ STATE_SOLVABLE, "url", STATE_URL, 1 },
+ { STATE_SOLVABLE, "packager", STATE_PACKAGER, 1 },
//{ STATE_SOLVABLE, "???", STATE_INSNOTIFY, 1 },
//{ STATE_SOLVABLE, "??", STATE_DELNOTIFY, 1 },
{ STATE_SOLVABLE, "vendor", STATE_VENDOR, 1 },
@@ -839,6 +841,10 @@
if (pd->content[0])
repodata_set_str(pd->data, handle, SOLVABLE_URL, pd->content);
break;
+ case STATE_PACKAGER:
+ if (pd->content[0])
+ repodata_set_poolstr(pd->data, handle, SOLVABLE_PACKAGER, pd->content);
+ break;
case STATE_SOURCERPM:
set_sourcerpm(pd->data, s, handle, pd->content);
break;

--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages