summaryrefslogtreecommitdiff
path: root/verify.c
diff options
context:
space:
mode:
authorewt <devnull@localhost>1996-02-20 19:42:47 +0000
committerewt <devnull@localhost>1996-02-20 19:42:47 +0000
commitfd29b68bcd4adbb0799a4bc4c2a324fd2f67ab09 (patch)
tree2082bbd72cc7869ac4ca11cbfd27d4556dccd094 /verify.c
parent4ae33f74b29bd84d66a967ab8d55c77eb6079148 (diff)
downloadlibrpm-tizen-fd29b68bcd4adbb0799a4bc4c2a324fd2f67ab09.tar.gz
librpm-tizen-fd29b68bcd4adbb0799a4bc4c2a324fd2f67ab09.tar.bz2
librpm-tizen-fd29b68bcd4adbb0799a4bc4c2a324fd2f67ab09.zip
changed output of verification
CVS patchset: 360 CVS date: 1996/02/20 19:42:47
Diffstat (limited to 'verify.c')
-rw-r--r--verify.c33
1 files changed, 14 insertions, 19 deletions
diff --git a/verify.c b/verify.c
index f306ba20a..b37e4a678 100644
--- a/verify.c
+++ b/verify.c
@@ -16,7 +16,7 @@ static void verifyMatches(char * prefix, rpmdb db, dbIndexSet matches);
static void verifyHeader(char * prefix, Header h) {
char ** fileList;
int count, type;
- int_32 verifyResult;
+ int verifyResult;
int i;
char * size, * md5, * link, * mtime, * mode;
char * group, * user, * rdev;
@@ -25,30 +25,31 @@ static void verifyHeader(char * prefix, Header h) {
for (i = 0; i < count; i++) {
rpmVerifyFile(prefix, h, i, &verifyResult);
- size = md5 = link = mtime = mode = "";
- user = group = rdev = "";
+ size = md5 = link = mtime = mode = ".";
+ user = group = rdev = ".";
if (!verifyResult) continue;
if (verifyResult & VERIFY_MD5)
- md5 = " 5 ";
+ md5 = "5";
if (verifyResult & VERIFY_FILESIZE)
- size = " S ";
+ size = "S";
if (verifyResult & VERIFY_LINKTO)
- link = " L ";
+ link = "L";
if (verifyResult & VERIFY_MTIME)
- mtime = " T ";
+ mtime = "T";
if (verifyResult & VERIFY_RDEV)
- rdev = " D ";
+ rdev = "D";
if (verifyResult & VERIFY_USER)
- user = " U ";
+ user = "U";
if (verifyResult & VERIFY_GROUP)
- group = " G ";
+ group = "G";
if (verifyResult & VERIFY_MODE)
- mode = " M ";
+ mode = "M";
- printf("%-38s %4s %4s %3s %3s %4s %4s %5s %4s\n", fileList[i],
- size, mode, md5, rdev, link, user, group, mtime);
+ printf("%s%s%s%s%s%s%s%s %s\n",
+ size, mode, md5, rdev, link, user, group, mtime,
+ fileList[i]);
}
free(fileList);
@@ -85,12 +86,6 @@ void doVerify(char * prefix, enum verifysources source, char ** argv) {
dbIndexSet matches;
char * arg;
- printf("%-38s %4s %4s %3s %3s %4s %4s %5s %4s\n",
- "File", "Size", "Mode", "Md5", "Dev", "Link", "User",
- "Group", "Time");
- printf("------------------------------------------------------------"
- "------------------\n");
-
if (source != VERIFY_SRPM && source != VERIFY_RPM) {
if (rpmdbOpen(prefix, &db, O_RDONLY, 0644)) {
exit(1);