diff options
author | Matt Housh <jaeger@crux.ninja> | 2020-10-13 09:44:00 -0500 |
---|---|---|
committer | Matt Housh <jaeger@crux.ninja> | 2020-10-13 09:44:00 -0500 |
commit | ac030e3530d3e029d2bcb501ed1edabd84e7f1d9 (patch) | |
tree | f03f70a84e8fd74a496c0c0d5ee75e0d0f247cb0 | |
parent | 8f9a1254ff49aa4234af67af8298dae4cce139f6 (diff) | |
download | prt-get-ac030e3530d3e029d2bcb501ed1edabd84e7f1d9.tar.gz prt-get-ac030e3530d3e029d2bcb501ed1edabd84e7f1d9.tar.xz |
Added a regex fix for listinst, updated to version 5.19.4v5.19.4
-rwxr-xr-x | configure | 2 | ||||
-rw-r--r-- | configure.in | 2 | ||||
-rw-r--r-- | src/prtget.cpp | 3 |
3 files changed, 4 insertions, 3 deletions
@@ -2585,7 +2585,7 @@ fi # Define the identity of the package. PACKAGE=prt-get - VERSION=5.19.3 + VERSION=5.19.4 cat >>confdefs.h <<_ACEOF diff --git a/configure.in b/configure.in index 43d87e9..2b6e84e 100644 --- a/configure.in +++ b/configure.in @@ -1,7 +1,7 @@ # Process this file with autoconf to produce a configure script. AC_INIT AC_CONFIG_SRCDIR([src/prtget.cpp]) -AM_INIT_AUTOMAKE(prt-get,5.19.3) +AM_INIT_AUTOMAKE(prt-get,5.19.4) dnl Determine default prefix diff --git a/src/prtget.cpp b/src/prtget.cpp index 89cea8d..8d983c8 100644 --- a/src/prtget.cpp +++ b/src/prtget.cpp @@ -524,7 +524,8 @@ void PrtGet::listInstalled() { assertMaxArgCount(1); - string arg = "*"; + string arg = m_useRegex ? ".*" : "*"; + if ( m_parser->otherArgs().size() == 1 ) { arg = *(m_parser->otherArgs().begin()); } |