Commit Graph

52 Commits

Author SHA1 Message Date
Chris West (Faux)
a027786828 chore: clippy: unused import 2020-10-30 00:32:40 +00:00
Chris West (Faux)
a5b8ede7ec chore: format 2020-10-30 00:26:45 +00:00
Stefan Reiter
edc7008762 add DepIterator to list dependencies of package versions
Mostly the same boilerplate as the other iterators, but with a special
SinglePkgView type introduced to allow direct access to the nested
PkgIterator returned from target_pkg.
2020-10-30 00:11:07 +00:00
Stefan Reiter
7b2d146e8d expose 'sane' interface to external consumers 2020-10-30 00:11:07 +00:00
Stefan Reiter
07c92f003b add package detail accessors
* short description
* long description
* maintainer
* homepage

Requires constructing a pkgRecords::Parser to read for some reason.
AFAICT this parser is bound to the pkgRecords instance and deleted
together with it, so it doesn't require an explicit delete/free.
2020-10-30 00:11:07 +00:00
Stefan Reiter
1018536523 add priority type accessor to VerView 2020-10-30 00:11:07 +00:00
Stefan Reiter
f28cd3e499 use correct raw type in PkgFileIterator 2020-10-30 00:11:07 +00:00
Chris West (Faux)
dac9411a56 edition = 2018 2019-01-21 22:22:47 +00:00
Chris West (Faux)
7f180bc3ef bump dev dependency / fmt 2018-12-17 19:04:09 +00:00
Chris West (Faux)
2f2167c027 new rustfmt 2018-04-12 20:35:08 +01:00
Chris West (Faux)
46aa9ed07f #2: support building with very old apt 2017-12-12 20:44:28 +00:00
Chris West (Faux)
c4e7590239 remove empty test 2017-11-17 09:54:20 +00:00
Chris West (Faux)
b104724ccf add a reload() (#1) 2017-11-17 09:54:14 +00:00
Chris West (Faux)
45741e2de1 PhantomData cares about the MutexGuard, not the Cache 2017-11-17 09:41:11 +00:00
Chris West (Faux)
e6f0bd8b6b comments / unwrap->expect 2017-11-17 09:31:24 +00:00
Chris West (Faux)
9ee8a3ca09 Cache actually carries around a mutex
This is way less insane than the old way, I think. And it seems to work.
2017-11-17 09:28:57 +00:00
Chris West (Faux)
e1cf0fa26c new rustfmt 2017-11-17 09:03:38 +00:00
Chris West (Faux)
370a764967 some extra iterator utilities 2017-10-15 15:44:24 +01:00
Chris West (Faux)
77918dcee7 fmt 2017-07-20 12:59:00 +01:00
Chris West (Faux)
81b66ce2ae expose version comparison 2017-07-20 12:45:30 +01:00
Chris West (Faux)
b1bb2ef8ca clippy 2017-07-14 18:15:50 +01:00
Chris West (Faux)
16aa763845 remove last warning with phantomdata 2017-07-14 18:14:49 +01:00
Chris West (Faux)
25c1de2af2 fmt 2017-07-14 14:03:49 +01:00
Chris West (Faux)
c7b6207ba6 a whole load of origin information may be absent; afaics only for /var/lib/dpkg/status? 2017-07-14 12:19:43 +01:00
Chris West (Faux)
e5a01acb71 surface a whole load more 'origin' information 2017-07-14 11:49:51 +01:00
Chris West (Faux)
4ced3f985c fmt 2017-07-13 22:11:05 +01:00
Chris West (Faux)
d935fa5fb7 some fiddling with the display 2017-07-13 22:01:45 +01:00
Chris West (Faux)
457c31b4a4 impl Display; remove prettyprint for compat; fix section 2017-07-13 21:50:53 +01:00
Chris West (Faux)
d1948421ce thinking about other iterator things to add 2017-07-13 20:10:03 +01:00
Chris West (Faux)
00188891eb fixup borrows on nasty iterators 2017-07-13 18:28:20 +01:00
Chris West (Faux)
d4d85c2485 ask the 'gcc' crate to do more work, travis? 2017-07-13 18:08:36 +01:00
Chris West (Faux)
cbc0f62106 fix module tests and write demonstration for the failure 2017-07-13 17:54:24 +01:00
Chris West (Faux)
6cde4ee61e fmt 2017-07-13 17:49:50 +01:00
Chris West (Faux)
d4dfd0fb7a Unify the Iterator implementations 2017-07-13 17:44:18 +01:00
Chris West (Faux)
8f5bc80c06 docs / crates.io stuff 2017-07-13 16:12:58 +01:00
Chris West (Faux)
f4e4724dd1 cargo fmt 2017-07-13 15:37:35 +01:00
Chris West (Faux)
6b164f172d clippy 2017-07-13 15:37:17 +01:00
Chris West (Faux)
06a3c497e7 fix warning with PhantomData 2017-07-13 15:33:30 +01:00
Chris West (Faux)
70812eb615 expose priority 2017-07-13 15:31:11 +01:00
Chris West (Faux)
67c2146b25 fix iterators with hack; fleshing out policy 2017-07-13 15:14:23 +01:00
Chris West (Faux)
d107ef373f versions; map misses the first item 2017-07-13 14:44:14 +01:00
Chris West (Faux)
eaf79f46ed switch to gcc build script 2017-07-13 13:51:58 +01:00
Chris West (Faux)
0126dd5220 rename 2017-07-13 13:51:57 +01:00
Chris West (Faux)
aa46a936f2 give in and lazy_singleton the cache 2017-07-13 13:38:48 +01:00
Chris West (Faux)
a394c4d37f find package by name 2017-07-13 13:24:54 +01:00
Chris West (Faux)
c4655a5bc5 maybe expose some more things 2017-07-13 11:57:29 +01:00
Chris West (Faux)
7562f18141 try and stop reinit segfaulting; doesn't really work 2017-07-13 11:32:33 +01:00
Chris West (Faux)
e90ee73dc8 More natural interface; no idea why it needs that annotation 2017-07-13 11:16:26 +01:00
Chris West (Faux)
e3f5bd3633 expose the iterator directly 2017-07-13 10:04:18 +01:00
Chris West (Faux)
4225e76641 this callback is dumb 2017-07-13 09:36:38 +01:00