diff options
author | Judd Vinet <judd@archlinux.org> | 2005-01-12 00:14:16 +0100 |
---|---|---|
committer | Judd Vinet <judd@archlinux.org> | 2005-01-12 00:14:16 +0100 |
commit | d48cc3bf5d0bc9aef5e816c81d3a0f6b8e2680c7 (patch) | |
tree | d58b94b8ec3f7909fbf7fd819c0f4a5b873d1285 /src/package.h | |
parent | ad39cd7bd6858841ebaa4809f151ba03c0e9f3bf (diff) | |
download | pacman-d48cc3bf5d0bc9aef5e816c81d3a0f6b8e2680c7.tar.gz pacman-d48cc3bf5d0bc9aef5e816c81d3a0f6b8e2680c7.tar.xz |
Imported from pacman-2.9.5.tar.gz
Diffstat (limited to 'src/package.h')
-rw-r--r-- | src/package.h | 8 |
1 files changed, 6 insertions, 2 deletions
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 <jvinet@zeroflux.org> + * Copyright (c) 2002-2005 by Judd Vinet <jvinet@zeroflux.org> * * 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 |