pkgin/pkgin a6a57cc. configure CHANGES.md

Release 0.11.8.
DeltaFile
+9-9configure
+5-0CHANGES.md
+1-1configure.ac
+15-103 files

pkgin/pkgin 91742d8. summary.c pkgindb_queries.c

Ensure single quotes are used for string literals.

SQLite 3.27.0 introduced a change in behaviour and started issuing
warnings to the error log when double quotes were being used for string
literals.  This happens to have been the way pkgin would insert every
package into the database, causing huge disk I/O to the sql.log file
when running "pkgin update".

At best this was significantly impacting runtime by orders of magnitude
and wasting disk space with large sql.log files, and at worst this was
reproducibly causing updates to fail entirely with "Short read of
pkg_summary: Lzma library error:  No progress is possible".

The exact details of why the extra logging was causing lzma failures is
still unclear and needs to be looked into to ensure we aren't missing
something else, but this change is demonstrated to avoid the issue.
DeltaFile
+21-9summary.c
+9-9pkgindb_queries.c
+1-1pkgindb.c
+31-193 files

pkgin/pkgin 8ee55a0. configure CHANGES.md

Release 0.11.7.
DeltaFile
+17-17configure
+7-0CHANGES.md
+1-1configure.ac
+25-183 files

pkgin/pkgin 3126fa3. pkgindb.c

Revert unsafe database pragmas.

There appears to be no discernable performance impact when prioritising
safety over speed, and should help to avoid issues seen by users where
the database becomes corrupted if they CTRL-C during operations.
DeltaFile
+1-2pkgindb.c
+1-21 files

pkgin/pkgin baece1b. tools.c pkgindb.c

Add some compiler gunk to get WARNS clean again.
DeltaFile
+1-0tools.c
+1-0pkgindb.c
+1-0main.c
+3-03 files

pkgin/pkgin 8c03cbb. pkgin.1.ronn

pkgin.1.ronn: Fix a couple of typos. (#3)
DeltaFile
+2-2pkgin.1.ronn
+2-21 files

pkgin/pkgin 0c4ead7. configure CHANGES.md

Release 0.11.6.
DeltaFile
+9-9configure
+4-0CHANGES.md
+1-1configure.ac
+14-103 files

pkgin/pkgin e6ffb00. fsops.c tools.c

Fix -Werror=conversion failure in trimcr().

While here avoid a separate strlen call in read_repos(), using the
length returned by trimcr().  The check for a NULL buf is removed as it
was already tested earlier in the function.
DeltaFile
+1-4fsops.c
+2-2tools.c
+1-1tools.h
+4-73 files

pkgin/pkgin 9aaa995. configure CHANGES.md

Release 0.11.5.
DeltaFile
+9-9configure
+8-0CHANGES.md
+1-1configure.ac
+18-103 files

pkgin/pkgin 9b6b39f. pkg_str.c preferred.c

Fix handling of unavailable and preferred packages.

During some of the earlier rototilling, the package not available
message was no longer printed for unavailable packages due to changes in
the download code.  This is now fixed, and also differentiates correctly
between packages that are not available, and those that do not match the
requirements stated in preferred.conf.

Use separate functions for install and show-* commands, the former using
the preferred.conf logic, the latter using regular matches to match
local queries and other tools.  This also avoids "not preferred"
messages leaking into show-* output, they belong in trace/debug output.

Abstract away some of the logic that will help in future cleanups, and
improve the output messages.  Upgrades still do not support preferred
matches, this will be fixed in due course.
DeltaFile
+64-19pkg_str.c
+18-9preferred.c
+6-7impact.c
+1-2messages.h
+2-1pkgin.h
+91-385 files

pkgin/pkgin f8341b2. preferred.c pkgin.h

Fix crash when preferred.conf is empty.

Switch to using an slist rather than manipulating a list of pointers,
simplify the code, and add static where possible.
DeltaFile
+38-42preferred.c
+2-3pkgin.h
+40-452 files

pkgin/pkgin a9bd241. tools.c

Optimise and clarify trimcr() a little.
DeltaFile
+10-5tools.c
+10-51 files

pkgin/pkgin c039b75. configure CHANGES.md

Release 0.11.4.
DeltaFile
+9-9configure
+6-0CHANGES.md
+1-1configure.ac
+16-103 files

pkgin/pkgin f64932c. depends.c

Add DEPENDS matching for the full dependency tree.

Previously pkgin would simply consider the latest available version of a
package and recurse into its dependency tree, but this could lead to
issues if it was later found that the latest version is not suitable for
DEPENDS.

This was shown most clearly by conflicts between net/samba (3.x) and
net/samba4 (4.x).  Packages that pulled in net/samba and a DEPENDS of
samba>=3.x<4.0 would eventually fail when trying to install devel/talloc
(a dependency of net/samba4) alongside net/samba as those two packages
both try to install include/talloc.h.

By correctly matching DEPENDS during the full tree scan, net/samba4 is
no longer considered and devel/talloc is no longer pulled in as a
dependency.

The implementation isn't ideal, and eventually will be replaced with
better logic, but the correct behaviour is desired first (along with
appropriate test cases), improvements second.
DeltaFile
+33-4depends.c
+33-41 files

pkgin/pkgin d1b7a42. configure CHANGES.md

Release 0.11.3.
DeltaFile
+9-9configure
+5-0CHANGES.md
+1-1configure.ac
+15-103 files

pkgin/pkgin 1c1386e. actions.c autoremove.c

Improve -n and autoremove output formatting.

pkgin/pkgin 22168e1. messages.h autoremove.c

Remove the autoremove warning.

This is what manual pages are for, and ensures consistent output.
DeltaFile
+0-2messages.h
+0-2autoremove.c
+0-42 files

pkgin/pkgin e598b3c. autoremove.c

Allow -y flag to work with autoremove.

The previous behaviour violated the principle of least surprise for no
apparent reason.  If anything, autoremove is less dangerous than
install, remove, or upgrade - all of which support -y.
DeltaFile
+0-3autoremove.c
+0-31 files

pkgin/pkgin f3c5378. configure CHANGES.md

Release 0.11.2.
DeltaFile
+9-9configure
+6-0CHANGES.md
+1-1configure.ac
+16-103 files

pkgin/pkgin dabe2ed. pkgindb_queries.c

Use full package name when importing via PKGPATH.

This ensures that, where multiple versions exist, we pick the correct
one.  Previously, an import of e.g. lang/nodejs6 would try to install
whatever the latest version available was.
DeltaFile
+1-1pkgindb_queries.c
+1-11 files

pkgin/pkgin 23cf457. tools.c pkg_infos.c

Show pkg_info output inline instead of buffering.

This avoids an occasional issue where the exec_list() output was being
corrupted.  Buffering the entire output could be considered useful if we
were actually using it to return an error status and print a useful
message, but we weren't, so this way is faster, uses less memory, and
allows us to remove more code.

We also now correctly return the exit code of pkg_info.
DeltaFile
+0-64tools.c
+17-11pkg_infos.c
+3-3main.c
+1-1pkgin.h
+0-2tools.h
+21-815 files

pkgin/pkgin 6b502bc. impact.c

Only consider a refresh if PKGPATH matches.

Fixes an issue where "pkgin upgrade" considered nodejs-8 a refresh of
nodejs-6 when calculating it as a dependency of yarn, whereas "pkgin
full-upgrade" did not.
DeltaFile
+8-2impact.c
+8-21 files

pkgin/pkgin 0459d10. configure CHANGES.md

Release 0.11.1.
DeltaFile
+9-9configure
+6-0CHANGES.md
+1-1configure.ac
+16-103 files

pkgin/pkgin 2d5ecd7. impact.c

Permit the user to install an older pkg version.

For now this counts as an upgrade, even though the version is going
backwards.  In the future this will probably be correctly accounted as a
downgrade action or similar.

Downgrades are only supported for packages that are specifically
requested on the command line, e.g. "pkgin in nodejs-6", otherwise they
are ignored, which was previously the behaviour for all packages.
DeltaFile
+12-13impact.c
+12-131 files

pkgin/pkgin 051e7b8. actions.c

Ensure warn/err counters are reset for each phase.

This is a temporary fix.  The logfile code uses far too many global
variables, and really should combine the results at the end of the run
to avoid an earlier phase with errors possibly getting lost.

While here remove an unused global variable and an incorrect function
call.
DeltaFile
+3-3actions.c
+3-31 files

pkgin/pkgin 494b78c. actions.c

Print total download size when using -d.
DeltaFile
+1-0actions.c
+1-01 files

pkgin/pkgin a207bbf. configure CHANGES.md

Release 0.11.0.
DeltaFile
+9-9configure
+11-0CHANGES.md
+1-1configure.ac
+21-103 files

pkgin/pkgin 9088461. actions.c

Improve the output action format.

If able, format the list of packages to the current window width, and
indent slightly to make a lot more readable, especially with large
numbers of packages.

For -n retain one package per line.
DeltaFile
+52-13actions.c
+52-131 files

pkgin/pkgin a49ffe6. actions.c impact.c

Add support for displaying packages to be refreshed.

As there is now a split between the actions and there is no total for
the install count, add a separate summary at the end displaying the
totals of each action along with the space requirements.
DeltaFile
+42-21actions.c
+8-8impact.c
+0-5messages.h
+1-0order.c
+1-0pkgin.h
+52-345 files

pkgin/pkgin 2348e03. actions.c order.c

Handle upgrades seperately to installs.

Keep separate lists for both and improve the output messages to say
which action is being performed.  Simplify some of the logic when
performing only downloads.
DeltaFile
+65-64actions.c
+3-105order.c
+1-2pkgin.h
+0-1messages.h
+69-1724 files

pkgin/pkgin e1ee4de. pkglist.c pkgin.h

Stop abusing struct Pkglist for different types.

Get rid of the different types and just have a single Pkglist with a
standard set of entries.  Not only does this simplify things, it avoids
a nasty shadowing issue where Pkglist.old was both an entry and a define
into a different union member.

At some point in the future this will be split up properly into structs
which only have exactly what they need.
DeltaFile
+17-33pkglist.c
+6-36pkgin.h
+11-11impact.c
+9-9autoremove.c
+7-7actions.c
+7-5order.c
+57-1016 files not shown
+69-11412 files

pkgin/pkgin 257bd4d. actions.c order.c

Add initial implementation of in-place upgrades.

Instead of performing a remove then reinstall of every package marked
for upgrade, just use "pkg_add -DU" to upgrade in-place.  This has a
number of benefits:

 * Preserved packages are handled correctly and are now upgraded without
   causing errors.
 * Ordering issues no longer cause "package is already installed"
   errors.
 * It is faster.

There are some cases where this isn't optimal yet and can still fail,
for example when trying to handle conflicts where we do legitimately
need to remove packages first before re-installing newer versions.  This
previously wasn't handled correctly either, so it is not considered a
regression, and will be improved in due course.
DeltaFile
+9-72actions.c
+2-4order.c
+0-1pkgin.h
+11-773 files

pkgin/pkgin 28f06b3. actions.c order.c

Add a separate download package list and counters.

This helps to extract some of the logic away from the install list,
paving the way for handling upgrades and refreshes correctly, and
improving the download-only messages.
DeltaFile
+29-5actions.c
+31-0order.c
+1-0pkgin.h
+61-53 files

pkgin/pkgin 8143d6d. actions.c messages.h

Remove some messages that aren't useful.

The "symlinking ..." message provides no real value, and can confuse
users when upgrades include BUILD_DATE refreshes, as the number of
messages may not match the number of packages to be acted upon if
symlinks already exist from a previous run.

The "installing packages..." message isn't very useful as immediately
after that we print a separate "installing..." message for each package.

The "nothing to upgrade" and "nothing to install" messages are of no use
either, and again can be potentially confusing, for example if all
you've requested is to perform downloads of packages.

While here remove some debug code to make pkgin_install a little more
readable.
DeltaFile
+4-20actions.c
+0-5messages.h
+4-252 files

pkgin/pkgin 4688cf7. actions.c order.c

Skip download checks for packages to be removed.
DeltaFile
+9-5actions.c
+2-1order.c
+11-62 files

pkgin/pkgin e4621db. download.c pkgindb.c

Some type conversion fixes.

Should fix the build on NetBSD/evbarm.
DeltaFile
+4-4download.c
+1-1pkgindb.c
+1-1pkgin.h
+1-1actions.c
+7-74 files

pkgin/pkgin 829bb92. configure CHANGES.md

Release 0.10.2.
DeltaFile
+9-9configure
+5-0CHANGES.md
+1-1configure.ac
+15-103 files

pkgin/pkgin 9f8ca16. main.c summary.c

Fix -f flag when used with install.

Previously the remote databases would be wiped but not reinserted
correctly due to confusion with the various global variables handling
this logic.  Fix the issue and simplify things a little until the
repository initialisation code can be overhauled correctly.
DeltaFile
+10-4main.c
+6-4summary.c
+1-2pkgin.h
+17-103 files

pkgin/pkgin ce044bd. impact.c order.c

Handle empty BUILD_DATE correctly.
DeltaFile
+8-1impact.c
+4-2order.c
+12-32 files

pkgin/pkgin 89abd21. configure CHANGES.md

Release 0.10.1.
DeltaFile
+9-9configure
+5-0CHANGES.md
+1-1configure.ac
+15-103 files

pkgin/pkgin 2a7eb55. actions.c

Fix refresh upgrades for preserved packages.

Using pkg_add -ffu is not adequate if the version is identical, pkg_add
will not reinstall the package.  We need to use -ffU to force pkg_add to
accept the refresh.

This is merely a stop-gap fix.  Preserve package upgrades are still
handled terribly by ignoring the pkg_delete errors, and will be fixed
properly in due course.
DeltaFile
+1-1actions.c
+1-11 files

pkgin/pkgin f585e25. autoremove.c pkgin.h

Remove pkg_is_kept, it is unused.
DeltaFile
+0-22autoremove.c
+0-1pkgin.h
+0-232 files

pkgin/pkgin c736d3b. messages.h

Improve provides/requires messages.

The most common confusion for users is that they believe provides and
requires refer to the full list of files provided or required by the
package, when in reality they only refer to shared libraries.
DeltaFile
+2-2messages.h
+2-21 files

pkgin/pkgin 1ed8a0d. configure configure.ac

Release 0.10.0, add GitHub issues URL.
DeltaFile
+21-21configure
+1-1configure.ac
+22-222 files

pkgin/pkgin d523af8. CHANGES CHANGES.md

Convert CHANGES to markdown, add 0.10.0 relnotes.
DeltaFile
+0-424CHANGES
+282-0CHANGES.md
+282-4242 files

pkgin/pkgin e9f2264. pkgindb.c pkgindb.h

Overhaul SQL error logging.

Use the primary sqlite3 interface for error logging, using a callback
function to report any errors as they happen.  This will allow us to
interface directly to the database if necessary rather than having to go
via the pkgindb_doquery() interface, and also provides useful error
messages rather than the very unhelpful "callback aborted".

Update the log output to include the date, format better for
readability, and open in append mode so we don't potentially lose useful
errors.

While here reorganise some functions into logical order and move the
remaining function declarations to pkgin.h
DeltaFile
+69-32pkgindb.c
+0-11pkgindb.h
+10-0pkgin.h
+79-433 files

pkgin/pkgin efc3b60. impact.c messages.h

Spell "in the repository" correctly.
DeltaFile
+2-2impact.c
+1-1messages.h
+3-32 files

pkgin/pkgin 14709c7. impact.c messages.h

Don't change MSG_CALCULATING_DEPS based on DEBUG.

Just use the istty check to determine whether to use the spinner or not,
helps to avoid control characters in non-terminal output, most notably
the test suite.
DeltaFile
+9-8impact.c
+0-5messages.h
+9-132 files

pkgin/pkgin a602340. pkgindb.c messages.h

Simplify and improve "pkgin stats".

Use the sqlite3_* interfaces directly rather than going via the
pkgindb_doquery() wrapper.  This allows values to be fetched directly
rather than having to be converted, and also enables 4 queries to be
reduced to just one.

Simplify and inline the output rather than having a bunch of defines for
each line.
DeltaFile
+33-37pkgindb.c
+0-9messages.h
+33-462 files

pkgin/pkgin 2635d3d. tools.c tools.h

tools: Remove unused functions.
DeltaFile
+0-45tools.c
+0-5tools.h
+0-502 files