Commit graph

66 commits

Author SHA1 Message Date
Bryan Gardiner
6118dc1168
Make 'nvd history' ignore broken profile symlinks (fixes #20). 2024-11-03 17:13:31 -08:00
Bryan Gardiner
734da23492
Provide a better error message for 'nvd list' on non-NixOS systems (fixes #21). 2024-10-27 13:04:01 -07:00
Bryan Gardiner
e58c00f322
nvd.1: Formatting. 2024-10-16 03:46:57 -07:00
Bryan Gardiner
69f1b1a628
Bump to v0.2.5. 2024-09-29 18:35:50 -07:00
Bryan Gardiner
f569850a55
Release v0.2.4. 2024-09-29 18:34:32 -07:00
Bryan Gardiner
c0ed21c632
Add semver sorting (issue #17). 2024-09-29 17:56:08 -07:00
Bryan Gardiner
4ae4ae9fae
Fall back to sorting by name, if all else is equal. 2024-09-29 17:07:26 -07:00
Bryan Gardiner
02a8e4911a
Bump the man page date too, there've been a lot of updates. 2024-09-26 20:29:21 -07:00
Bryan Gardiner
90f93282f1
Minor changelog update. 2024-09-26 20:17:27 -07:00
Bryan Gardiner
4fc78b3e69
Add selectable version highlighting; use a default red/green scheme. 2024-09-26 20:14:03 -07:00
Bryan Gardiner
f40b73c812
For version highlighting, don't rewind past number-letter boundaries. 2024-09-26 19:35:17 -07:00
Bryan Gardiner
73084a954a
Update the URL of the version comparison algoithm, in the man page too. 2024-09-26 19:22:52 -07:00
Bryan Gardiner
263cec533d
Fix type declaration on print_packages() pname parameter. 2024-09-26 19:17:40 -07:00
Bryan Gardiner
bf4f249ff3 Merge branch 'add-selected-flag-to-all-commands' into 'master'
Add --selected to list and history commands

See merge request khumba/nvd!5
2024-09-27 02:14:36 +00:00
Bryan Gardiner
22eb1cb5da
Warn users who pull from git master about the upcoming sr.ht migration. 2024-09-24 17:43:16 -07:00
Felix Uhl
cc5d7479e1 Add --selected to list and history commands 2024-09-24 19:27:53 +02:00
Bryan Gardiner
f72ab902f7
Add 'history' command to changelog; tweak ProfileVersion.__eq__().
- Add mention of the new history command to the changelog.

- Make ProfileVersion.__eq__() compare version but not path, so that it lines up
  with what __lt__() does, for simplicity.
2024-09-17 18:21:13 -07:00
Bryan Gardiner
d9ad4964f5
nvd.1: Escape characters that are special according to groff_char(7). 2024-09-17 18:08:34 -07:00
Felix Uhl
b1813cb042 Add history command
Closes #18
2024-09-17 15:09:32 +02:00
Bryan Gardiner
ae4749c20d
Add "Error" to error message for consistency. 2024-09-09 23:04:33 -07:00
Bryan Gardiner
b2cf56efff
Add --sort option (issue #17). 2024-09-09 23:04:17 -07:00
Bryan Gardiner
20bcbda4b5
Drop unnecessary imports from 'typing'. 2024-09-07 22:00:58 -07:00
Bryan Gardiner
0ca2d3931b
Fix return type declaration of PackageSetPair.is_selection_state_changed(). 2024-08-22 20:52:17 -07:00
Bryan Gardiner
e7d0ce0c89
Make the rest of the 'list' and 'diff' logic use PackageSet. 2024-08-22 20:51:45 -07:00
Bryan Gardiner
682570f054
Rename "package manifests" to "package sets".
There are two styles of coding that are used currently.  First, the
PackageManifest{,Pair} classes track an arbitrary list of store paths (not
necessarily a closure) as parsed Package and Version objects.  These are used to
track and compare the sets of selected packages.  Then for everything else like
version diffing, we just store raw nested data structures holding package names
and versions, e.g. dict[str, list[optional[str]]] for mapping package names to
lists of available versions (and then parse Versions on the fly to do
comparisons, which is inefficient).

This is the beginning of clean-up to make the latter use PackageSet, Package,
and Version as well.
2024-08-18 18:28:15 -07:00
Bryan Gardiner
9594ab31ef
Fix some version ordering bugs.
- Use @total_ordering to supply implementations of all other comparison
  functions from just __eq__() and __le__().  This is not done automatically.

  https://docs.python.org/3/library/functools.html#functools.total_ordering

- An incomplete check for "pre" meant that the following would evaluate
  to true:

      VersionChunk("1pre2") < VersionChunk("1pre2")

  In practice this wasn't a problem because it appears that when comparing
  VersionChunk lists, equality is checked before ordering, but this isn't
  good to rely on.
2024-08-18 17:46:03 -07:00
Bryan Gardiner
8c8c662d87
Update the URL of the version comparison algoithm. 2024-08-18 17:46:03 -07:00
Bryan Gardiner
a8c1d6fa00
Update copyright to 2024. 2024-05-04 18:53:19 -07:00
Bryan Gardiner
30ecb231b7
Highlight the changed parts of version numbers (issue #17). 2024-05-04 18:47:30 -07:00
Bryan Gardiner
1276c2d3eb
Respect the NO_COLOR environment variable to disable colour. 2023-05-28 10:09:14 -07:00
Bryan Gardiner
19a6f7d3d1
Bump to v0.2.4. 2023-05-22 11:47:24 -07:00
Bryan Gardiner
6a67c9e1b4
Release v0.2.3. 2023-05-22 11:46:44 -07:00
Bryan Gardiner
cf59afb64f
Be stricter about checking exit codes from nix. 2023-05-22 11:44:37 -07:00
Bryan Gardiner
35bd54cb63
Fix compatibility with nix-2.3 not knowing --extra-experimental-features. 2023-05-22 11:40:59 -07:00
Bryan Gardiner
38736d6392
Bump to v0.2.3. 2023-05-22 11:00:52 -07:00
Bryan Gardiner
ccb957f706
Release v0.2.2. 2023-05-22 10:58:31 -07:00
Bryan Gardiner
8302026545
Fix crash when inspecting Nix package with no deps (related to issue #12). 2023-03-17 21:36:13 -07:00
Bryan Gardiner
7f17e6cdf3
Bump to v0.2.2. 2023-03-17 21:21:26 -07:00
Bryan Gardiner
37aa59ab4f
Release v0.2.1. 2023-03-17 21:20:12 -07:00
Bryan Gardiner
2d2b40b147
Update copyright to 2023. 2023-03-17 21:19:36 -07:00
Bryan Gardiner
1bf9d1740d
Fix reference to undefined variable (issue #12), and fix some lint. 2023-03-17 21:16:02 -07:00
Bryan Gardiner
f87f29530b
Bump to v0.2.1. 2022-10-15 16:35:05 -07:00
Bryan Gardiner
ef319a927d
Release v0.2.0. 2022-10-15 16:34:36 -07:00
Bryan Gardiner
11fd14887a
Bump to v0.2.0 because of changed output format. 2022-10-15 16:33:54 -07:00
Bryan Gardiner
0cfd93e34e
Fix invalid .P command in nvd.1. 2022-10-12 18:35:59 -07:00
Bryan Gardiner
06e1fc696c
Add a note that nvd should be obtained through Nixpkgs.
It was kindly pointed out to me in merge request !3 that it's not clear
that nvd is in Nixpkgs.  Nixpkgs is the preferred way to get nvd, or
alternatively one of the release tags in this repo, rather than the
master branch where things can change willy-nilly.
2022-10-12 18:26:24 -07:00
Bryan Gardiner
a334e6c0ec
Add --nix-bin-dir option for specifying Nix binaries to use (issue #9). 2022-10-12 17:38:24 -07:00
Bryan Gardiner
082958c205
Add display of the change in closure disk size (issue #8). 2022-10-12 17:14:51 -07:00
Bryan Gardiner
f735e17038
Bump copyright to 2022. 2022-10-12 17:14:51 -07:00
Bryan Gardiner
b082bd23f5 Merge branch 'SuperSandro2000-master-patch-21642' into 'master'
Remove URL literal

See merge request khumba/nvd!2
2022-05-28 04:18:12 +00:00