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 04-30-2012, 06:27 AM
Allan McRae
 
Default Extract .MTREE file into local package database

Signed-off-by: Allan McRae <allan@archlinux.org>
---
lib/libalpm/add.c | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c
index b007766..b98346e 100644
--- a/lib/libalpm/add.c
+++ b/lib/libalpm/add.c
@@ -164,6 +164,11 @@ static int extract_single_file(alpm_handle_t *handle, struct archive *archive,
snprintf(filename, PATH_MAX, "%s%s-%s/changelog",
_alpm_db_path(handle->db_local), newpkg->name, newpkg->version);
archive_entry_set_perm(entry, 0644);
+ } else if(strcmp(entryname, ".MTREE") == 0) {
+ /* the mtree file goes inside the db */
+ snprintf(filename, PATH_MAX, "%s%s-%s/mtree",
+ _alpm_db_path(handle->db_local), newpkg->name, newpkg->version);
+ archive_entry_set_perm(entry, 0644);
} else if(*entryname == '.') {
/* for now, ignore all files starting with '.' that haven't
* already been handled (for future possibilities) */
--
1.7.10
 

Thread Tools




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

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