Browse Source

removed "check_initialized" from check.c - since it is already checked

in md5sum.c ... 


git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@2068 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Rene Rebe 21 years ago
parent
commit
4257308cc0
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      package/base/mine/x-feature-check.patch

+ 5
- 5
package/base/mine/x-feature-check.patch

@ -55,7 +55,7 @@ for a common package check interface.
+#include "mine.h" +#include "mine.h"
+#include "md5sum.h" +#include "md5sum.h"
+ +
+extern int check_initialized = 0;
+
+ +
+int gem_check(char * root, char * package) +int gem_check(char * root, char * package)
+{ +{
@ -64,10 +64,10 @@ for a common package check interface.
+ int modified = 0; + int modified = 0;
+ FILE *f; + FILE *f;
+ +
+ if ( ! check_initialized ) {
+ md5sum_initdb(root, 0 /* verbose */);
+ check_initialized = 1;
+ }
+
+ md5sum_initdb(root, 0 /* verbose */);
+
+
+ +
+ snprintf(buffer, 1024, "%s/var/adm/flists/%s", root, package); + snprintf(buffer, 1024, "%s/var/adm/flists/%s", root, package);
+ f = fopen(buffer, "r"); + f = fopen(buffer, "r");

Loading…
Cancel
Save