Juan RP
9157f7d148
xbps-bin: split main.c into new files: list.c show-orphans.c and unpack_cb.c.
2011-11-11 10:18:52 +01:00
Juan RP
029fd96690
xbps-bin: state_cb.c: initialize var to silence a warning.
2011-11-11 09:45:03 +01:00
Juan RP
86f1f18571
libxbps: revamped trans states/cb to be more generic, not just for transactions.
2011-11-11 09:41:48 +01:00
Juan RP
dc4f7af890
xbps-bin: remove useless printf in autoupdate target.
2011-11-11 00:39:47 +01:00
Juan RP
ced906ff3f
xbps-repo: renamed repository.c to show.c.
2011-11-10 23:31:46 +01:00
Juan RP
c2eed68471
libxbps: add xbps_repository_pool_sync, to sync repoidx from all remotes.
2011-11-10 23:14:50 +01:00
Juan RP
de4504c248
Update refs to pkg-index, which aren't true anymore.
2011-11-10 09:21:17 +01:00
Juan RP
59dc65b907
Move prog.mk to the bin directory.
2011-11-08 17:45:14 +01:00
Juan RP
662b5acc08
Implemented "New repository scheme and configuration file" from issue 16.
2011-11-07 20:28:35 +01:00
Juan RP
27c5138324
xbps-bin: use xbps_fetch_error_string in reposync err cb.
2011-11-07 19:56:30 +01:00
Juan RP
fe3353a2b2
xbps-uhelper: optimize some targets where xbps_init() is not necessary.
2011-11-05 08:41:29 +01:00
Juan RP
1031ea0141
xbps-bin: return proper error value if update target fails.
2011-10-31 21:28:21 +01:00
Juan RP
39e8ada644
xbps-repo: simplify code in repository.c.
2011-10-29 11:24:02 +02:00
Juan RP
5731b7d070
xbps-bin: XBPS_TRANS_STATE_REPOSYNC printf tweak.
2011-10-29 10:21:31 +02:00
Juan RP
1c4d486396
xbps-{bin,repo}: new -o flag for the 'show' target, to print specific objs value.
2011-10-29 08:17:54 +02:00
Juan RP
549b5e2e36
xbps-{bin,repo}: dynamically print all objs in the 'show-files' target.
2011-10-28 23:02:07 +02:00
Juan RP
c5fcaa294d
xbps-{bin,repo}: dynamically print all objs in the 'show' target.
2011-10-28 18:17:19 +02:00
Juan RP
238c9d9926
xbps-bin: (check) initialize vars to avoid a gcc warning.
2011-10-28 09:35:34 +02:00
Juan RP
8bc705ea63
xbps-bin(8): (check) new test to fix missing requiredby entries in regpkgdb.
2011-10-28 00:57:16 +02:00
Juan RP
f87b40eb76
xbps-bin(8): split individual checks from check.c into its own files.
...
This is in preparation for new upcoming checks.
2011-10-27 17:08:48 +02:00
Juan RP
2ff2d1f68a
xbps-bin(8): 'check' target now works with virtual packages.
2011-10-27 11:02:55 +02:00
Juan RP
807045d1d5
xbps-bin(8): make 'remove' target also follow common style to list pkgs.
2011-10-25 17:52:05 +02:00
Juan RP
746d9894c2
xbps-bin(8): remove specified pkgs first in recursive case.
...
Previously the specified pkg(s) were added at the tail of the
array, which was wrong. Add pkg(s) to the head of the array so that:
$ xbps-bin -Rp remove foo blah
foo and blah will be removed before any of its automatic dependecies.
2011-10-24 10:23:07 +02:00
Juan RP
4f8e6c00af
xbps-bin: install: use a shell wildcard pattern if only pkgname is set.
2011-10-24 10:03:54 +02:00
Juan RP
bda1feb396
xbps-bin: more printf cosmetics for the install target.
2011-10-19 16:25:06 +02:00
Juan RP
40d15fd342
xbps-bin(8): the 'check' target now switches to auto mode if required.
2011-10-19 09:44:18 +02:00
Juan RP
8fa21753b1
xbps-bin: printf cosmetics for the install target.
2011-10-18 21:40:26 +02:00
Juan RP
931a03b806
New configuration schemas changes, round 3.
...
struct xbps_handle::conffile has been renamed to confdir, and it now
expects the path to a directory, where the configuration files are
stored.
Change xbps-bin(8) and xbps-repo(8) along with its manpages to mention
that -C expects a directory.
2011-10-17 15:11:54 +02:00
Juan RP
5642ffa86e
New configuration scheme changes, round 1.
...
- Configuration file 'xbps-conf.plist' has been splitted off into
two files: conf.plist and repositories.plist. By default they
are stored in etc/xbps.
- Changed some members in xbps_handle struct, mostly to make it easy
to change its value in {cache,root}dir and conffile.
- Made xbps_init() release proplib objects as soon as we don't need
them, that way it uses 35% less of memory or in some cases even more.
There will be another commit that will implement to read new virtualpkg
settings by the user, as specified in:
http://code.google.com/p/xbps/issues/detail?id=12
2011-10-17 12:37:15 +02:00
Juan RP
d70036dd81
xbps-repo8(8): make the show targets be aware of vpkg settings in conf.
2011-10-16 16:54:08 +02:00
Juan RP
2d50109da5
xbps-bin: detect broken symlinks in the 'check' target.
2011-09-28 11:06:24 +02:00
Juan RP
edb909c899
xbps-{bin,repo}: minor change to long_desc obj printing.
2011-09-01 09:50:47 +02:00
Juan RP
4aa06921ff
xbps-*: do not pass a NULL pointer to xbps_end().
2011-07-29 11:27:43 +02:00
Juan RP
2857214afa
libxbps: improve returned errnos for repository API functions.
...
- xbps_repository_update_packages: return ENOENT if regpkgdb is NULL
(no packages currently registered).
- xbps_repository_update_packages: return EEXIST if no updates are
available.
- xbps_repository_pool: return ENOTSUP if no repositories were
registered.
- make xbps-{bin,repo} handle ENOTSUP errors.
2011-07-29 11:17:34 +02:00
Juan RP
e71e3e9958
trans_cb: fix obvious error in REPOSYNC state.
2011-07-29 11:12:34 +02:00
Juan RP
3bbc6ae18d
trans_cb: also show old pkgver when updating a pkg.
2011-07-29 08:09:23 +02:00
Juan RP
5e390b8839
Introduce new pkg state: half-unpacked.
...
Packages in this state shall be re-installed and re-unpacked because its
files weren't unpacked properly.
2011-07-28 16:25:01 +02:00
Juan RP
6c0b24029b
xbps-bin(8): fix a couple issues in the 'check' target.
2011-07-28 16:24:16 +02:00
Juan RP
6f783389dd
Share transaction callbacks for xbps-{bin,repo}, reposync cb support.
2011-07-28 09:25:30 +02:00
Juan RP
43b841dce1
Use xfcd->cookie to pass user-supplied data to the fetch cb.
2011-07-27 18:04:38 +02:00
Juan RP
508f119bc9
Moved install transaction code to libxbps, see NEWS file.
2011-07-27 17:13:54 +02:00
Juan RP
6b02c28bd7
xbps-bin(8): simplify previous commit and reuse new code.
2011-07-25 16:44:26 +02:00
Juan RP
e26b6e23e6
xbps-bin(8): make 'show{,-deps,-revdeps}' target work with virtual pkgs.
2011-07-25 16:40:34 +02:00
Juan RP
19f4cbd995
Generate transaction pkg count stats in the transaction dictionary.
...
This removes a chunk in frontends to compute number of installed,
updated, configured and removed pkgs in transaction.
2011-07-24 17:43:17 +02:00
Juan RP
d1454c21d2
Improvements to xbps-bin(8) and xbps-repo(8) manpages.
2011-07-23 08:33:12 +02:00
Juan RP
33d6d2e166
libxbps: API/ABI break changes to fix issues with virtual packages.
...
Please see the NEWS file for info about this commit.
2011-07-15 18:22:58 +02:00
Juan RP
fddb472dd0
xbps-uhelper: remove unused targets/code.
2011-07-15 16:29:55 +02:00
Juan RP
5917fc7404
xbps-repo: printf uint64_t with PRIu64.
2011-07-11 12:12:55 +02:00
Juan RP
f7918ec5aa
xbps-repo: ignore pkgs providing virtualpkgs in genindex target.
2011-07-11 10:12:42 +02:00
Juan RP
c163801fd0
xbps-bin: print the list of pkgs when removing a pkg with reverse-deps.
...
This commit also removes the printf for -F, it seems that it's confusing
so I simply removed it and it won't proceed unless -F is specified.
2011-07-10 20:24:29 +02:00