4 Commits

Author SHA1 Message Date
Juergen Daubert
da6bfb0a60 move prt-get.aliases to /etc, update version to 5.19.5 2020-10-16 10:27:37 +02:00
Matt Housh
ac030e3530 Added a regex fix for listinst, updated to version 5.19.4 2020-10-13 09:44:00 -05:00
Matt Housh
8f9a1254ff Updated version to 5.19.3 2019-03-08 16:28:56 -06:00
Matt Housh
69c857a896 Revert "FS#593 isatty(1) check for quickdep to increase usability"
This reverts commit 54dc911470.
2019-03-08 12:30:52 -06:00
4 changed files with 9 additions and 11 deletions

2
configure vendored
View File

@@ -2585,7 +2585,7 @@ fi
# Define the identity of the package.
PACKAGE=prt-get
VERSION=5.19.2
VERSION=5.19.5
cat >>confdefs.h <<_ACEOF

View File

@@ -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.2)
AM_INIT_AUTOMAKE(prt-get,5.19.5)
dnl Determine default prefix

View File

@@ -27,7 +27,7 @@ using namespace std;
const string PkgDB::PKGDB = "/var/lib/pkg/db";
const string PkgDB::ALIAS_STORE = LOCALSTATEDIR"/lib/pkg/prt-get.aliases";
const string PkgDB::ALIAS_STORE = SYSCONFDIR"/prt-get.aliases";
/*!
Create a PkgDB object

View File

@@ -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());
}
@@ -755,15 +756,12 @@ void PrtGet::printDepends( bool simpleListing )
const list<string>& deps = transaction.dependencies();
if ( simpleListing ) {
/* check if stdout is a tty, for package exclusion via: prt-get install `prt-get quickdep foobar | grep -v ^gnome-` */
bool const tty = isatty(1);
if ( deps.size() > 0 ) {
list<string>::const_iterator it = deps.begin();
for ( ; it != deps.end(); ++it )
cout << *it << (tty ? " " : "\n");
if (tty)
cout << endl;
for ( ; it != deps.end(); ++it ) {
cout << *it << " ";
}
cout << endl;
}
} else {
if ( deps.size() > 0 ) {