Record header instance on rpmdbAdd() on success
authorPanu Matilainen <pmatilai@redhat.com>
Sun, 30 Nov 2008 15:28:11 +0000 (17:28 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Sun, 30 Nov 2008 15:28:11 +0000 (17:28 +0200)
lib/rpmdb.c

index 2fe429b..f1f51d2 100644 (file)
@@ -2928,6 +2928,10 @@ cont:
        }
 
        rec = _free(rec);
+       /* If everthing ok, mark header as installed now */
+       if (ret == 0) {
+           headerSetInstance(h, hdrNum);
+       }
     }
 
 exit: