[zypp-commit] r11121 - /trunk/sat-solver/tools/repo_updateinfoxml.c
Author: mlschroe
Date: Mon Sep 22 15:04:13 2008
New Revision: 11121
URL: http://svn.opensuse.org/viewcvs/zypp?rev=11121&view=rev
Log:
- fix indentation
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=11121&r1=11120&r2=11121&view=diff
==============================================================================
--- trunk/sat-solver/tools/repo_updateinfoxml.c (original)
+++ trunk/sat-solver/tools/repo_updateinfoxml.c Mon Sep 22 15:04:13 2008
@@ -261,16 +261,16 @@
{
const char *from = 0, *status = 0, *type = 0, *version = 0;
for (; *atts; atts += 2)
- {
- if (!strcmp(*atts, "from"))
- from = atts[1];
- else if (!strcmp(*atts, "status"))
- status = atts[1];
- else if (!strcmp(*atts, "type"))
- type = atts[1];
- else if (!strcmp(*atts, "version"))
- version = atts[1];
- }
+ {
+ if (!strcmp(*atts, "from"))
+ from = atts[1];
+ else if (!strcmp(*atts, "status"))
+ status = atts[1];
+ else if (!strcmp(*atts, "type"))
+ type = atts[1];
+ else if (!strcmp(*atts, "version"))
+ version = atts[1];
+ }
solvable = pd->solvable = pool_id2solvable(pool, repo_add_solvable(pd->repo));
@@ -301,10 +301,10 @@
{
const char *date = 0;
for (; *atts; atts += 2)
- {
- if (!strcmp(*atts, "date"))
- date = atts[1];
- }
+ {
+ if (!strcmp(*atts, "date"))
+ date = atts[1];
+ }
repodata_set_str(pd->data, pd->datanum, SOLVABLE_BUILDTIME, date);
}
break;
@@ -319,16 +319,16 @@
{
const char *href = 0, *id = 0, *title = 0, *type = 0;
for (; *atts; atts += 2)
- {
- if (!strcmp(*atts, "href"))
- href = atts[1];
- else if (!strcmp(*atts, "id"))
- id = atts[1];
- else if (!strcmp(*atts, "title"))
- title = atts[1];
- else if (!strcmp(*atts, "type"))
- type = atts[1];
- }
+ {
+ if (!strcmp(*atts, "href"))
+ href = atts[1];
+ else if (!strcmp(*atts, "id"))
+ id = atts[1];
+ else if (!strcmp(*atts, "title"))
+ title = atts[1];
+ else if (!strcmp(*atts, "type"))
+ type = atts[1];
+ }
#if DO_ARRAY
repodata_add_poolstr_array(pd->data, pd->datanum, UPDATE_REFERENCE_HREF, href);
repodata_add_poolstr_array(pd->data, pd->datanum, UPDATE_REFERENCE_ID, id);
@@ -372,14 +372,14 @@
for (; *atts; atts += 2)
- {
- if (!strcmp(*atts, "arch"))
- arch = atts[1];
- else if (!strcmp(*atts, "name"))
- name = atts[1];
- else if (!strcmp(*atts, "src"))
- src = atts[1];
- }
+ {
+ if (!strcmp(*atts, "arch"))
+ arch = atts[1];
+ else if (!strcmp(*atts, "name"))
+ name = atts[1];
+ else if (!strcmp(*atts, "src"))
+ src = atts[1];
+ }
/* generated Ids for name and arch */
n = str2id(pool, name, 1);
if (arch)
@@ -469,9 +469,10 @@
break;
case STATE_ID:
{
- if (pd->content) {
- s->name = str2id(pool, join2("patch", ":", pd->content), 1);
- }
+ if (pd->content)
+ {
+ s->name = str2id(pool, join2("patch", ":", pd->content), 1);
+ }
}
break;
/* <title>imlib-1.9.15-6.fc8</title> */
@@ -479,10 +480,10 @@
{
while (pd->lcontent > 0
&& *(pd->content + pd->lcontent - 1) == '\n')
- {
- --pd->lcontent;
- *(pd->content + pd->lcontent) = 0;
- }
+ {
+ --pd->lcontent;
+ *(pd->content + pd->lcontent) = 0;
+ }
repodata_set_str(pd->data, pd->datanum, SOLVABLE_SUMMARY, pd->content);
}
break;
@@ -527,9 +528,9 @@
* to ensure all UPDATE_COLLECTION_* arrays are filled in parallel
*/
if (!package_filename_seen)
- {
- repodata_add_poolstr_array(pd->data, pd->datanum, UPDATE_COLLECTION_FILENAME, "");
- }
+ {
+ repodata_add_poolstr_array(pd->data, pd->datanum, UPDATE_COLLECTION_FILENAME, "");
+ }
repodata_add_idarray(pd->data, pd->datanum, UPDATE_COLLECTION_FLAGS, package_flags+1);
#endif
}
@@ -550,11 +551,11 @@
if (pd->content
&& (pd->content[0] == 'T'
|| pd->content[0] == 't'|| pd->content[0] == '1'))
- {
- /* FIXME: this is per-package, the global flag should be computed at runtime */
- repodata_set_void(pd->data, pd->datanum, UPDATE_REBOOT);
- package_flags = 1;
- }
+ {
+ /* FIXME: this is per-package, the global flag should be computed at runtime */
+ repodata_set_void(pd->data, pd->datanum, UPDATE_REBOOT);
+ package_flags = 1;
+ }
}
break;
/*
participants (1)
-
mlschroe@svn.opensuse.org