Imported Upstream version 0.6.27
[platform/upstream/libsolv.git] / tools / updateinfoxml2solv.c
index 921538f..6a97b0d 100644 (file)
@@ -6,8 +6,6 @@
  */
 
 #include <sys/types.h>
-#include <limits.h>
-#include <fcntl.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -54,7 +52,11 @@ main(int argc, char **argv)
          break;
        }
     }
-  repo_add_updateinfoxml(repo, stdin, flags);
+  if (repo_add_updateinfoxml(repo, stdin, flags))
+    {
+      fprintf(stderr, "updateinfoxml2solv: %s\n", pool_errstr(pool));
+      exit(1);
+    }
   tool_write(repo, 0, attrname);
   pool_free(pool);
   exit(0);