Mailinglist Archive: zypp-commit (606 mails)

< Previous Next >
[zypp-commit] r9470 - /trunk/sat-solver/tools/repo_updateinfoxml.c
  • From: kkaempf@xxxxxxxxxxxxxxxx
  • Date: Tue, 08 Apr 2008 14:45:29 -0000
  • Message-id: <20080408144529.4A5E027008@xxxxxxxxxxxxxxxx>
Author: kkaempf
Date: Tue Apr 8 16:45:28 2008
New Revision: 9470

URL: http://svn.opensuse.org/viewcvs/zypp?rev=9470&view=rev
Log:
write UPDATE_COLLECTION

Modified:
trunk/sat-solver/tools/repo_updateinfoxml.c

Modified: trunk/sat-solver/tools/repo_updateinfoxml.c
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/tools/repo_updateinfoxml.c?rev=9470&r1=9469&r2=9470&view=diff
==============================================================================
--- trunk/sat-solver/tools/repo_updateinfoxml.c (original)
+++ trunk/sat-solver/tools/repo_updateinfoxml.c Tue Apr 8 16:45:28 2008
@@ -347,13 +347,28 @@
}
/* generated Ids for name and arch */
n = str2id(pool, name, 1);
- a = str2id(pool, arch, 1);
+ if (arch)
+ a = str2id(pool, arch, 1);
+ else
+ a = ARCH_NOARCH;
/* now combine both to a single Id */
na = rel2id(pool, n, a, REL_ARCH, 1);

rel_id = rel2id(pool, na, evr, REL_LT, 1);

solvable->conflicts = repo_addid_dep(pd->repo, solvable->conflicts,
rel_id, 0);
+
+ if (1) {
+ const char *evrstr = id2str(pool, evr);
+ int buflen = strlen(name) + 1 + strlen(evrstr) + 1 +
strlen(arch?arch:"") + 1;
+ char *buf;
+ if (!arch) arch = "";
+ buf = (char *)malloc(buflen);
+ if (!buf) exit(1);
+ sprintf(buf, "%s %s %s", name, evrstr, arch);
+ repodata_add_poolstr_array(pd->data, pd->datanum, UPDATE_COLLECTION,
buf);
+ free(buf);
+ }
}
break;
/* <filename>libntlm-0.4.2-1.fc8.x86_64.rpm</filename> */

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

< Previous Next >
This Thread
  • No further messages