Mailinglist Archive: zypp-commit (545 mails)

< Previous Next >
[zypp-commit] r8726 - in /trunk/sat-solver/tools: repo_susetags.c tools_util.h
  • From: matz@xxxxxxxxxxxxxxxx
  • Date: Fri, 15 Feb 2008 13:39:43 -0000
  • Message-id: <20080215133943.EB3A014D957@xxxxxxxxxxxxxxxx>
Author: matz
Date: Fri Feb 15 14:39:43 2008
New Revision: 8726

URL: http://svn.opensuse.org/viewcvs/zypp?rev=8726&view=rev
Log:
Write out pattern visibility.

Modified:
trunk/sat-solver/tools/repo_susetags.c
trunk/sat-solver/tools/tools_util.h

Modified: trunk/sat-solver/tools/repo_susetags.c
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/tools/repo_susetags.c?rev=8726&r1=8725&r2=8726&view=diff
==============================================================================
--- trunk/sat-solver/tools/repo_susetags.c (original)
+++ trunk/sat-solver/tools/repo_susetags.c Fri Feb 15 14:39:43 2008
@@ -663,6 +663,15 @@
case CTAG('=', 'D', 'e', 'l'):
repodata_set_str(data, last_found_pack, id_messagedel, line + 6);
continue;
+ case CTAG('=', 'V', 'i', 's'):
+ {
+ /* Accept numbers and textual bools. */
+ unsigned k;
+ k = atoi (line + 6);
+ if (k || !strcasecmp (line + 6, "true"))
+ repodata_set_constant(data, last_found_pack, id_isvisible, 1);
+ }
+ continue;
case CTAG('=', 'S', 'h', 'r'):
if (last_found_pack >= pd.nshare)
{

Modified: trunk/sat-solver/tools/tools_util.h
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/tools/tools_util.h?rev=8726&r1=8725&r2=8726&view=diff
==============================================================================
--- trunk/sat-solver/tools/tools_util.h (original)
+++ trunk/sat-solver/tools/tools_util.h Fri Feb 15 14:39:43 2008
@@ -163,6 +163,8 @@
static Id id_installtime;
static Id id_installonly;

+static Id id_isvisible;
+
static void init_attr_ids(Pool *pool)
{
id_size = str2id(pool, "size", 1);;
@@ -191,6 +193,8 @@
id_source = str2id(pool, "source", 1);
id_sourceid = str2id(pool, "sourceid", 1);
id_time = str2id(pool, "time", 1);
+
+ id_isvisible = str2id(pool, "isvisible", 1);
}

/* util function to set a translated string */

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

< Previous Next >
This Thread
  • No further messages