Imported Upstream version 0.6.29
[platform/upstream/libsolv.git] / tools / deltainfoxml2solv.c
index 1528df2..7d6348f 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_deltainfoxml(repo, stdin, flags);
+  if (repo_add_deltainfoxml(repo, stdin, flags))
+    {
+      fprintf(stderr, "deltainfoxml2solv: %s\n", pool_errstr(pool));
+      exit(1);
+    }
   tool_write(repo, 0, attrname);
   pool_free(pool);
   exit(0);