FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Pacman Development

 
 
LinkBack Thread Tools
 
Old 03-06-2011, 06:47 AM
Allan McRae
 
Default Do not print warning with files entry in sync db

repo-add can add a "files" entry into the sync db. Currently we
do nothing with this file, so explicitly skip it to prevent
unknown database file warnings.

Signed-off-by: Allan McRae <allan@archlinux.org>
---
lib/libalpm/be_sync.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/lib/libalpm/be_sync.c b/lib/libalpm/be_sync.c
index 5faf0b8..6c0d2d6 100644
--- a/lib/libalpm/be_sync.c
+++ b/lib/libalpm/be_sync.c
@@ -432,9 +432,11 @@ static int sync_db_read(pmdb_t *db, struct archive *archive,
READ_AND_STORE_ALL(pkg->deltas);
}
}
+ } else if(strcmp(filename, "files") == 0) {
+ /* currently do nothing with this file */
} else {
- /* unknown database file */
- _alpm_log(PM_LOG_DEBUG, "unknown database file: %s", filename);
+ /* unknown database file */
+ _alpm_log(PM_LOG_DEBUG, "unknown database file: %s
", filename);
}

error:
--
1.7.4.1
 

Thread Tools




All times are GMT. The time now is 09:34 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org