- only add info block if there are file provides
authorMichael Schroeder <mls@suse.de>
Wed, 19 Mar 2008 18:56:02 +0000 (18:56 +0000)
committerMichael Schroeder <mls@suse.de>
Wed, 19 Mar 2008 18:56:02 +0000 (18:56 +0000)
tools/common_write.c

index c9ea71c..a16b1b1 100644 (file)
@@ -158,7 +158,8 @@ tool_write(Repo *repo, const char *basename, const char *attrname)
 
   fileinfos = sat_zextend(fileinfos, nfileinfos, 1, sizeof(Repodatafile), REPODATAFILE_BLOCK);
   pool_addfileprovides_ids(repo->pool, 0, &fileinfos[nfileinfos].addedfileprovides);
-  nfileinfos++;
+  if (fileinfos[nfileinfos].addedfileprovides)
+    nfileinfos++;
 
   if (basename)
     {