From d48cc3bf5d0bc9aef5e816c81d3a0f6b8e2680c7 Mon Sep 17 00:00:00 2001 From: Judd Vinet Date: Tue, 11 Jan 2005 23:14:16 +0000 Subject: Imported from pacman-2.9.5.tar.gz --- src/package.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/package.h') diff --git a/src/package.h b/src/package.h index ea9a3248..ac300323 100644 --- a/src/package.h +++ b/src/package.h @@ -1,7 +1,7 @@ /* * package.h * - * Copyright (c) 2002-2004 by Judd Vinet + * Copyright (c) 2002-2005 by Judd Vinet * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -68,6 +68,10 @@ typedef struct __pkginfo_t { PMList *requiredby; PMList *conflicts; PMList *provides; + /* if the package has an associated filename on the local system + * (eg, filename.pkg.tar.gz) then it will be stored here, otherwise NULL + */ + char *filename; } pkginfo_t; typedef struct __depend_t { @@ -89,7 +93,7 @@ void freepkg(pkginfo_t *pkg); int pkgcmp(const void *p1, const void *p2); int is_pkgin(pkginfo_t *needle, PMList *haystack); void dump_pkg_full(pkginfo_t *info); -void dump_pkg_sync(pkginfo_t *info); +void dump_pkg_sync(pkginfo_t *info, char *treename); int split_pkgname(char *pkgfile, char *name, char *version); #endif -- cgit v1.2.3-24-g4f1b