summaryrefslogtreecommitdiffstats
path: root/src/pacman/conf.h
diff options
context:
space:
mode:
authorXavier Chantry <shiningxc@gmail.com>2009-07-19 11:15:11 +0200
committerDan McGee <dan@archlinux.org>2010-03-15 00:44:40 +0100
commitd39b1dbe627af218e49be6424857089a5888903b (patch)
tree9225a360217ede5c5817fa41fb182454008dce6e /src/pacman/conf.h
parent67700b926a1eff745272975e7b089b80bf72cc30 (diff)
downloadpacman-d39b1dbe627af218e49be6424857089a5888903b.tar.gz
pacman-d39b1dbe627af218e49be6424857089a5888903b.tar.xz
Add new --print operation for all operations
And a new --print-format option to configure the output. This implements FS#14208 Example usage : pacman -Sp --print-format "%r/%n-%v : %l [%s]" kdelibs extra/kdelibs-4.3.2-4 : ftp://mir2.archlinuxfr.org/archlinux/extra/os/i686/kdelibs-4.3.2-4-i686.pkg.tar.gz [0,00] Signed-off-by: Xavier Chantry <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src/pacman/conf.h')
-rw-r--r--src/pacman/conf.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pacman/conf.h b/src/pacman/conf.h
index c97e5d78..6ded522d 100644
--- a/src/pacman/conf.h
+++ b/src/pacman/conf.h
@@ -31,6 +31,8 @@ typedef struct __config_t {
unsigned short noconfirm;
unsigned short noprogressbar;
unsigned short logmask;
+ unsigned short print;
+ char *print_format;
/* unfortunately, we have to keep track of paths both here and in the library
* because they can come from both the command line or config file, and we
* need to ensure we get the order of preference right. */
@@ -59,7 +61,6 @@ typedef struct __config_t {
unsigned short op_s_sync;
unsigned short op_s_search;
unsigned short op_s_upgrade;
- unsigned short op_s_printuris;
unsigned short group;
pmtransflag_t flags;
@@ -103,7 +104,8 @@ enum {
OP_IGNOREGROUP,
OP_NEEDED,
OP_ASEXPLICIT,
- OP_ARCH
+ OP_ARCH,
+ OP_PRINTFORMAT
};
/* clean method */