Some fix some bugs
authorTomas Mlcoch <tmlcoch@redhat.com>
Tue, 3 Apr 2012 14:52:07 +0000 (16:52 +0200)
committerTomas Mlcoch <tmlcoch@redhat.com>
Tue, 3 Apr 2012 14:52:07 +0000 (16:52 +0200)
src/createrepo_c.c
src/load_metadata.c

index 6eee61d..1e734f3 100644 (file)
@@ -379,6 +379,7 @@ int main(int argc, char **argv) {
         g_free(pri_xml_filename);
         g_free(fil_xml_filename);
         g_free(oth_xml_filename);
+        exit(1);
     }
 
     if ((fil_cw_file = cw_open(fil_xml_filename, CW_MODE_WRITE, GZ_COMPRESSION)) == NULL) {
index 127ee41..4bf418d 100644 (file)
@@ -1086,7 +1086,7 @@ int locate_and_load_xml_metadata(GHashTable *hashtable, const char *repopath, Ha
         return result;
     }
 
-    g_debug(MODULE"%s: Parsed items: %d\n", __func__, g_hash_table_size(intern_hashtable));
+    g_debug(MODULE"%s: Parsed items: %d", __func__, g_hash_table_size(intern_hashtable));
 
     // Fill user hashtable and use user selected key
 
@@ -1115,7 +1115,7 @@ int locate_and_load_xml_metadata(GHashTable *hashtable, const char *repopath, Ha
         }
 
         if (g_hash_table_lookup(hashtable, new_key)) {
-            g_debug(MODULE"%s: Key \"%s\" already exists in hashtable\n", __func__, (char *) new_key);
+            g_debug(MODULE"%s: Key \"%s\" already exists in hashtable", __func__, (char *) new_key);
             g_hash_table_iter_remove(&iter);
         } else {
             g_hash_table_insert(hashtable, new_key, p_value);