pm, branch HEADbarely a pack manager
93b07d0960f9e15faf38c6411398cb6c822dd4972020-06-02T11:04:05Z2020-06-02T11:04:05ZRename MANDIR to MANPREFIXWilly Goiffondev@z3bra.orgcommit 93b07d0960f9e15faf38c6411398cb6c822dd497
parent b68e1d5ace0e9ecce3f4b8f866489e244a152995
Author: Willy Goiffon <dev@z3bra.org>
Date: Tue, 2 Jun 2020 13:04:05 +0200
Rename MANDIR to MANPREFIX
b68e1d5ace0e9ecce3f4b8f866489e244a1529952020-06-02T11:02:02Z2020-06-02T11:02:02ZCleanup READMEWilly Goiffondev@z3bra.orgcommit b68e1d5ace0e9ecce3f4b8f866489e244a152995
parent 0c8ca85a678fa09457671f953c91c76a732aafc0
Author: Willy Goiffon <dev@z3bra.org>
Date: Tue, 2 Jun 2020 13:02:02 +0200
Cleanup README
0c8ca85a678fa09457671f953c91c76a732aafc02020-06-02T09:56:50Z2020-06-02T09:56:50ZRefresh manpages with examples and up to date informationWilly Goiffondev@z3bra.orgcommit 0c8ca85a678fa09457671f953c91c76a732aafc0
parent 2619ec20294d69b06bba8d1351f06e4d267eac29
Author: Willy Goiffon <dev@z3bra.org>
Date: Tue, 2 Jun 2020 11:56:50 +0200
Refresh manpages with examples and up to date information
2619ec20294d69b06bba8d1351f06e4d267eac292020-06-02T08:36:28Z2020-06-02T08:36:28ZReformat README usageWilly Goiffondev@z3bra.orgcommit 2619ec20294d69b06bba8d1351f06e4d267eac29
parent 2011fb1d06f4a9330433f084a251b4a77162ca67
Author: Willy Goiffon <dev@z3bra.org>
Date: Tue, 2 Jun 2020 10:36:28 +0200
Reformat README usage
2011fb1d06f4a9330433f084a251b4a77162ca672020-05-29T17:16:13Z2020-05-29T17:22:58ZFix off-by-one error when copying root pathWilly Goiffondev@z3bra.orgcommit 2011fb1d06f4a9330433f084a251b4a77162ca67
parent 76c3f28f7015a81b45e92a9779c336bf63adc5fc
Author: Willy Goiffon <dev@z3bra.org>
Date: Fri, 29 May 2020 19:16:13 +0200
Fix off-by-one error when copying root path
76c3f28f7015a81b45e92a9779c336bf63adc5fc2020-05-29T17:14:19Z2020-05-29T17:22:58ZUpdate README to be cleanerWilly Goiffondev@z3bra.orgcommit 76c3f28f7015a81b45e92a9779c336bf63adc5fc
parent 43061929728ba58dd57d8fb3f3b7b28d4904ab80
Author: Willy Goiffon <dev@z3bra.org>
Date: Fri, 29 May 2020 19:14:19 +0200
Update README to be cleaner
43061929728ba58dd57d8fb3f3b7b28d4904ab802019-07-02T08:58:25Z2019-07-02T08:58:25ZProvide mkfile to build with plan9's mkWilly Goiffondev@z3bra.orgcommit 43061929728ba58dd57d8fb3f3b7b28d4904ab80
parent f93efb2ffb3ec69a6fc760ed6ebdd262397ee14b
Author: Willy Goiffon <dev@z3bra.org>
Date: Tue, 2 Jul 2019 10:58:25 +0200
Provide mkfile to build with plan9's mk
f93efb2ffb3ec69a6fc760ed6ebdd262397ee14b2019-07-01T09:00:17Z2019-07-01T09:00:17ZUpdate contact information in LICENSEWilly Goiffondev@z3bra.orgcommit f93efb2ffb3ec69a6fc760ed6ebdd262397ee14b
parent 3afe77e21dd955174efc8647a7c04a19370e64ba
Author: Willy Goiffon <dev@z3bra.org>
Date: Mon, 1 Jul 2019 11:00:17 +0200
Update contact information in LICENSE
3afe77e21dd955174efc8647a7c04a19370e64ba2019-04-11T09:42:27Z2019-04-11T09:42:27ZUse ERE instead of BRE for POSIX complianceAdrian Grigoreadrian.emil.grigore@gmail.comcommit 3afe77e21dd955174efc8647a7c04a19370e64ba
parent 05c187f408ad9b7aeec9434070073f13ff78a0f4
Author: Adrian Grigore <adrian.emil.grigore@gmail.com>
Date: Thu, 11 Apr 2019 11:42:27 +0200
Use ERE instead of BRE for POSIX compliance
05c187f408ad9b7aeec9434070073f13ff78a0f42019-04-11T09:40:51Z2019-04-11T09:40:51ZFix config.mk for OpenBSD supportz3bracontactatz3bradotorgcommit 05c187f408ad9b7aeec9434070073f13ff78a0f4
parent f39448a37649cb6ed9f67e5295970e286a89f52e
Author: z3bra <contactatz3bradotorg>
Date: Thu, 11 Apr 2019 11:40:51 +0200
Fix config.mk for OpenBSD support
f39448a37649cb6ed9f67e5295970e286a89f52e2019-04-01T07:37:57Z2019-04-11T08:53:48ZUpdate contact email in manpagesz3bracontactatz3bradotorgcommit f39448a37649cb6ed9f67e5295970e286a89f52e
parent 76ec1848a58718b2fba8162c8f3e8695bfe12644
Author: z3bra <contactatz3bradotorg>
Date: Mon, 1 Apr 2019 09:37:57 +0200
Update contact email in manpages
76ec1848a58718b2fba8162c8f3e8695bfe126442019-04-01T07:35:04Z2019-04-11T08:53:48ZReplace sprintf() with snprintf() callz3bracontactatz3bradotorgcommit 76ec1848a58718b2fba8162c8f3e8695bfe12644
parent bbfee43d53ebc2ace9c41c80b6dc30ac3e91b5c6
Author: z3bra <contactatz3bradotorg>
Date: Mon, 1 Apr 2019 09:35:04 +0200
Replace sprintf() with snprintf() call
bbfee43d53ebc2ace9c41c80b6dc30ac3e91b5c62018-10-30T19:25:53Z2018-10-30T19:25:53ZDisplay version in verbose mode only in inspect_system()z3bracontactatz3bradotorgcommit bbfee43d53ebc2ace9c41c80b6dc30ac3e91b5c6
parent 107ce0e3e0cd0fe71ba49bbe508f3dc393824a96
Author: z3bra <contactatz3bradotorg>
Date: Tue, 30 Oct 2018 20:25:53 +0100
Display version in verbose mode only in inspect_system()
107ce0e3e0cd0fe71ba49bbe508f3dc393824a962017-11-25T21:15:11Z2017-11-25T21:15:11ZRemove useless "checking ..." logsz3bracontactatz3bradotorgcommit 107ce0e3e0cd0fe71ba49bbe508f3dc393824a96
parent 2c2a64bf081adb86aa5863023ee1c0e68cfea1e3
Author: z3bra <contactatz3bradotorg>
Date: Sat, 25 Nov 2017 22:15:11 +0100
Remove useless "checking ..." logs
2c2a64bf081adb86aa5863023ee1c0e68cfea1e32017-11-25T20:59:12Z2017-11-25T20:59:12ZStrip binary by defaultz3bracontactatz3bradotorgcommit 2c2a64bf081adb86aa5863023ee1c0e68cfea1e3
parent 1cf858aeacc51eb954f89638e7c08791f6e78846
Author: z3bra <contactatz3bradotorg>
Date: Sat, 25 Nov 2017 21:59:12 +0100
Strip binary by default
1cf858aeacc51eb954f89638e7c08791f6e788462017-11-25T20:52:02Z2017-11-25T20:52:02ZReword log/error messages for consistencyz3bracontactatz3bradotorgcommit 1cf858aeacc51eb954f89638e7c08791f6e78846
parent 1122cb5b5c7dc42336705a96f9948cd36b9891a7
Author: z3bra <contactatz3bradotorg>
Date: Sat, 25 Nov 2017 21:52:02 +0100
Reword log/error messages for consistency
1122cb5b5c7dc42336705a96f9948cd36b9891a72017-11-25T17:34:49Z2017-11-25T17:34:52ZOnly update if versions differz3bracontactatz3bradotorgcommit 1122cb5b5c7dc42336705a96f9948cd36b9891a7
parent af900cc7fe4dc5326abf194645263bcbf789cabf
Author: z3bra <contactatz3bradotorg>
Date: Sat, 25 Nov 2017 18:34:49 +0100
Only update if versions differ
In case pack version is the same, the update will fail for this pack. An
update can be forced in order to reinstall a pack (delete + add) with
the -f flag.
af900cc7fe4dc5326abf194645263bcbf789cabf2017-05-15T17:13:07Z2017-05-15T17:13:07ZInclude config.hz3bracontactatz3bradotorgcommit af900cc7fe4dc5326abf194645263bcbf789cabf
parent f2e9f15006e11c4856048cf0376442c59b0650fb
Author: z3bra <contactatz3bradotorg>
Date: Mon, 15 May 2017 19:13:07 +0200
Include config.h
f2e9f15006e11c4856048cf0376442c59b0650fb2017-05-05T06:30:08Z2017-05-05T06:30:08ZUpdate pack filename formatz3bracontactatz3bradotorgcommit f2e9f15006e11c4856048cf0376442c59b0650fb
parent 7abfe9d3b7af0c91be34242fec36cf3c46f16295
Author: z3bra <contactatz3bradotorg>
Date: Fri, 5 May 2017 08:30:08 +0200
Update pack filename format
7abfe9d3b7af0c91be34242fec36cf3c46f162952017-05-05T06:28:15Z2017-05-05T06:28:15ZMake dependencies more explicit in makefilez3bracontactatz3bradotorgcommit 7abfe9d3b7af0c91be34242fec36cf3c46f16295
parent 3fd5784d2ea900d1e8ef69be56677d835909695b
Author: z3bra <contactatz3bradotorg>
Date: Fri, 5 May 2017 08:28:15 +0200
Make dependencies more explicit in makefile
3fd5784d2ea900d1e8ef69be56677d835909695b2017-05-05T06:26:47Z2017-05-05T06:27:18ZMove program tweaks to config.hz3bracontactatz3bradotorgcommit 3fd5784d2ea900d1e8ef69be56677d835909695b
parent b613d5ebdb9d76571ae6be652757ec6e3c6baf4d
Author: z3bra <contactatz3bradotorg>
Date: Fri, 5 May 2017 08:26:47 +0200
Move program tweaks to config.h
b613d5ebdb9d76571ae6be652757ec6e3c6baf4d2016-12-16T09:40:34Z2016-12-16T09:40:34ZAllow disabling repository aware featuresz3bracontactatz3bradotorgcommit b613d5ebdb9d76571ae6be652757ec6e3c6baf4d
parent 719fc796cedbdd1b2db385d7a6235370d2d21abc
Author: z3bra <contactatz3bradotorg>
Date: Fri, 16 Dec 2016 10:40:34 +0100
Allow disabling repository aware features
719fc796cedbdd1b2db385d7a6235370d2d21abc2016-12-16T01:27:06Z2016-12-16T01:27:06ZExit if REPO_EXEC fails to runz3brawillyatmailoodotorgcommit 719fc796cedbdd1b2db385d7a6235370d2d21abc
parent db07b233b50ef3e66363489c8f85cd189525a579
Author: z3bra <willyatmailoodotorg>
Date: Fri, 16 Dec 2016 02:27:06 +0100
Exit if REPO_EXEC fails to run
db07b233b50ef3e66363489c8f85cd189525a5792016-12-16T01:07:41Z2016-12-16T01:07:41ZGive ability to fetch remote packs using an external toolz3brawillyatmailoodotorgcommit db07b233b50ef3e66363489c8f85cd189525a579
parent c98e93ed70eba1d6a5f7fce6b87e15179d5d3171
Author: z3bra <willyatmailoodotorg>
Date: Fri, 16 Dec 2016 02:07:41 +0100
Give ability to fetch remote packs using an external tool
c98e93ed70eba1d6a5f7fce6b87e15179d5d31712016-09-09T11:38:46Z2016-09-09T11:38:46ZSave full path instead of basename in pack structz3brawillyatmailoodotorgcommit c98e93ed70eba1d6a5f7fce6b87e15179d5d3171
parent ba9dca9b6a14c82f79f297ebc16736c12189f1cf
Author: z3bra <willyatmailoodotorg>
Date: Fri, 9 Sep 2016 13:38:46 +0200
Save full path instead of basename in pack struct
ba9dca9b6a14c82f79f297ebc16736c12189f1cf2016-09-09T11:38:14Z2016-09-09T11:38:14ZAdd libacl to linked librariesz3brawillyatmailoodotorgcommit ba9dca9b6a14c82f79f297ebc16736c12189f1cf
parent e9711c9b1d1dc9fd7c3741309cd879cda2ebabc6
Author: z3bra <willyatmailoodotorg>
Date: Fri, 9 Sep 2016 13:38:14 +0200
Add libacl to linked libraries
e9711c9b1d1dc9fd7c3741309cd879cda2ebabc62016-06-22T08:20:56Z2016-06-22T08:20:56ZFix bug in inspect_installed()z3brawillyatmailoodotorgcommit e9711c9b1d1dc9fd7c3741309cd879cda2ebabc6
parent 11ca8f6728acf195601b904ac0c90cbfff2f2f8f
Author: z3bra <willyatmailoodotorg>
Date: Wed, 22 Jun 2016 10:20:56 +0200
Fix bug in inspect_installed()
11ca8f6728acf195601b904ac0c90cbfff2f2f8f2016-06-22T07:54:01Z2016-06-22T07:54:01ZClean pack from syystem if update failsz3brawillyatmailoodotorgcommit 11ca8f6728acf195601b904ac0c90cbfff2f2f8f
parent 714472bbfbcc98d91cd52a7ebc7ca205a0601666
Author: z3bra <willyatmailoodotorg>
Date: Wed, 22 Jun 2016 09:54:01 +0200
Clean pack from syystem if update fails
Packs should not be left "half-installed". In case the update fails during
installation, the pack will simply be removed from the system.
This commit also fixes a few cases where mmap() would fail, and put metadata
removal in its own function, for easier use.
714472bbfbcc98d91cd52a7ebc7ca205a06016662016-06-22T05:14:54Z2016-06-22T05:14:54ZExplain pack naming convention betterz3brawillyatmailoodotorgcommit 714472bbfbcc98d91cd52a7ebc7ca205a0601666
parent 7b061f1009b6ce1177e5d5cf694c507009bb5761
Author: z3bra <willyatmailoodotorg>
Date: Wed, 22 Jun 2016 07:14:54 +0200
Explain pack naming convention better
7b061f1009b6ce1177e5d5cf694c507009bb57612016-06-22T05:14:32Z2016-06-22T05:14:32ZAdd xz(1) compression supportz3brawillyatmailoodotorgcommit 7b061f1009b6ce1177e5d5cf694c507009bb5761
parent b5e9210a1157c7316f3de603ae7731f084135b7f
Author: z3bra <willyatmailoodotorg>
Date: Wed, 22 Jun 2016 07:14:32 +0200
Add xz(1) compression support
b5e9210a1157c7316f3de603ae7731f084135b7f2016-06-20T23:56:28Z2016-06-20T23:56:28ZUpdated error messages to be more informativez3brawillyatmailoodotorgcommit b5e9210a1157c7316f3de603ae7731f084135b7f
parent 365b4680352256efca096caabfcedb6ef654f17d
Author: z3bra <willyatmailoodotorg>
Date: Tue, 21 Jun 2016 01:56:28 +0200
Updated error messages to be more informative
365b4680352256efca096caabfcedb6ef654f17d2016-06-20T23:52:52Z2016-06-20T23:52:52ZSpecify pack loading method explicitelyz3brawillyatmailoodotorgcommit 365b4680352256efca096caabfcedb6ef654f17d
parent 74821245d8bf64da7337c48a14622371499a8e4f
Author: z3bra <willyatmailoodotorg>
Date: Tue, 21 Jun 2016 01:52:52 +0200
Specify pack loading method explicitely
74821245d8bf64da7337c48a14622371499a8e4f2016-06-20T23:41:37Z2016-06-20T23:44:05ZUse regexes to extract pack metadataz3brawillyatmailoodotorgcommit 74821245d8bf64da7337c48a14622371499a8e4f
parent 95c3494e630efb221d053b015b1aeb0276c8ed36
Author: z3bra <willyatmailoodotorg>
Date: Tue, 21 Jun 2016 01:41:37 +0200
Use regexes to extract pack metadata
This allow specifying more complex filename format, such has having different
extenstions (useful to accept multipel compression algos for example).
this also make loading from either filename/packname easier, as a pack name
would never match the filename format.
Also, this commit adds gzip compression support... Don't tell anyone!
95c3494e630efb221d053b015b1aeb0276c8ed362016-06-19T21:11:28Z2016-06-19T21:11:28ZUpdate manpage to match the current softwarez3brawillyatmailoodotorgcommit 95c3494e630efb221d053b015b1aeb0276c8ed36
parent cff442f1fd7f8d6b3a9b8d3996cadaddf5be5f0c
Author: z3bra <willyatmailoodotorg>
Date: Sun, 19 Jun 2016 23:11:28 +0200
Update manpage to match the current software
cff442f1fd7f8d6b3a9b8d3996cadaddf5be5f0c2016-06-19T20:53:44Z2016-06-19T20:53:44ZUpdate LICENSEz3brawillyatmailoodotorgcommit cff442f1fd7f8d6b3a9b8d3996cadaddf5be5f0c
parent 953787c303624bcc096216c5ccf232cbadfe0b3c
Author: z3bra <willyatmailoodotorg>
Date: Sun, 19 Jun 2016 22:53:44 +0200
Update LICENSE
953787c303624bcc096216c5ccf232cbadfe0b3c2016-06-18T23:39:27Z2016-06-18T23:39:27ZLoad pack from either a tarball or a namez3brawillyatmailoodotorgcommit 953787c303624bcc096216c5ccf232cbadfe0b3c
parent 07cdaa8ebcaebae5fb50e9b28b6977445418bd86
Author: z3bra <willyatmailoodotorg>
Date: Sun, 19 Jun 2016 01:39:27 +0200
Load pack from either a tarball or a name
Loading a pack data structure can now be done either from a tarball, or from
an installed pack using its name only.
The only "real" change brough here is that one can now delete an install pack
by using a tarball as an argument as in,
# delete the pack this tarball would install
pm -d pm#1.0.tar.bz2
not *that* useful but the change strives for correctness/generality also.
07cdaa8ebcaebae5fb50e9b28b6977445418bd862016-06-18T23:39:13Z2016-06-18T23:39:13ZMake update() perform an install with overwrite flag setz3brawillyatmailoodotorgcommit 07cdaa8ebcaebae5fb50e9b28b6977445418bd86
parent 6e855748b4844361a463e1e0d3a48f04c45eefdf
Author: z3bra <willyatmailoodotorg>
Date: Sun, 19 Jun 2016 01:39:13 +0200
Make update() perform an install with overwrite flag set
6e855748b4844361a463e1e0d3a48f04c45eefdf2016-06-18T23:18:18Z2016-06-18T23:18:18ZAvoid chdir() and work with absolute pathz3brawillyatmailoodotorgcommit 6e855748b4844361a463e1e0d3a48f04c45eefdf
parent 9aee903d9fa062136b5e605cc0b43e7c03252d49
Author: z3bra <willyatmailoodotorg>
Date: Sun, 19 Jun 2016 01:18:18 +0200
Avoid chdir() and work with absolute path
9aee903d9fa062136b5e605cc0b43e7c03252d492016-06-18T23:17:02Z2016-06-18T23:17:02ZCosmetic changes (output message + variable names)z3brawillyatmailoodotorgcommit 9aee903d9fa062136b5e605cc0b43e7c03252d49
parent 0290de341b07d207b5b06e7f9597d8c6779e9c87
Author: z3bra <willyatmailoodotorg>
Date: Sun, 19 Jun 2016 01:17:02 +0200
Cosmetic changes (output message + variable names)
0290de341b07d207b5b06e7f9597d8c6779e9c872016-06-18T20:59:22Z2016-06-18T20:59:22ZDetail verbosity in man pagez3brawillyatmailoodotorgcommit 0290de341b07d207b5b06e7f9597d8c6779e9c87
parent ce53dfcafe58e9315780df8764352dfb85df965f
Author: z3bra <willyatmailoodotorg>
Date: Sat, 18 Jun 2016 22:59:22 +0200
Detail verbosity in man page
ce53dfcafe58e9315780df8764352dfb85df965f2016-06-18T20:40:19Z2016-06-18T20:40:19ZMake prototype/function declaration consistentz3brawillyatmailoodotorgcommit ce53dfcafe58e9315780df8764352dfb85df965f
parent 8ac938b57e4fe44d05aa7662a32e21939291f555
Author: z3bra <willyatmailoodotorg>
Date: Sat, 18 Jun 2016 22:40:19 +0200
Make prototype/function declaration consistent
8ac938b57e4fe44d05aa7662a32e21939291f5552016-06-17T23:29:57Z2016-06-17T23:29:57ZChange back to working dir after pack_delete()z3brawillyatmailoodotorgcommit 8ac938b57e4fe44d05aa7662a32e21939291f555
parent e75a29dc260ce4d1a54c83eb9ec5de73c958875d
Author: z3bra <willyatmailoodotorg>
Date: Sat, 18 Jun 2016 01:29:57 +0200
Change back to working dir after pack_delete()
e75a29dc260ce4d1a54c83eb9ec5de73c958875d2016-06-17T23:19:03Z2016-06-17T23:21:22ZRework information loggingz3brawillyatmailoodotorgcommit e75a29dc260ce4d1a54c83eb9ec5de73c958875d
parent 5f251565fd50d808e101a1dcbce3ed48fb9502bb
Author: z3bra <willyatmailoodotorg>
Date: Sat, 18 Jun 2016 01:19:03 +0200
Rework information logging
There are now 3 logging levels: INFO, VERBOSE, DEBUG
INFO: write out which action has been done
VERBOSE: explain HOW an action is being done
DEBUG: report every change made to the filesystem
The logging level can be increased by passing the verbose flags (-v) again.
Each level includes the messages of the previous levels.
5f251565fd50d808e101a1dcbce3ed48fb9502bb2016-06-17T23:17:35Z2016-06-17T23:17:35ZPass datadir as an argument to pack_delete()z3brawillyatmailoodotorgcommit 5f251565fd50d808e101a1dcbce3ed48fb9502bb
parent 9d2a5bb11a9e4ca685764375ff8dd6e0f4062b9a
Author: z3bra <willyatmailoodotorg>
Date: Sat, 18 Jun 2016 01:17:35 +0200
Pass datadir as an argument to pack_delete()
9d2a5bb11a9e4ca685764375ff8dd6e0f4062b9a2016-06-16T23:10:50Z2016-06-16T23:10:50ZDon't treat hidden/special directories as packsz3brawillyatmailoodotorgcommit 9d2a5bb11a9e4ca685764375ff8dd6e0f4062b9a
parent e592a819ac5982f7999174cbea4a4b9c76a24e99
Author: z3bra <willyatmailoodotorg>
Date: Fri, 17 Jun 2016 01:10:50 +0200
Don't treat hidden/special directories as packs
e592a819ac5982f7999174cbea4a4b9c76a24e992016-06-16T23:10:22Z2016-06-16T23:10:22ZExplode delete() in two functionsz3brawillyatmailoodotorgcommit e592a819ac5982f7999174cbea4a4b9c76a24e99
parent 77b61b8c42ad62ed77124cf43cb68632ad9d5005
Author: z3bra <willyatmailoodotorg>
Date: Fri, 17 Jun 2016 01:10:22 +0200
Explode delete() in two functions
77b61b8c42ad62ed77124cf43cb68632ad9d50052016-06-16T11:17:13Z2016-06-16T11:17:13ZAdd ability to load a pack from the metadata directoryz3brawillyatmailoodotorgcommit 77b61b8c42ad62ed77124cf43cb68632ad9d5005
parent 1be3eff999d9f349dbc430701429058d30152778
Author: z3bra <willyatmailoodotorg>
Date: Thu, 16 Jun 2016 13:17:13 +0200
Add ability to load a pack from the metadata directory
1be3eff999d9f349dbc430701429058d301527782016-06-16T11:02:13Z2016-06-16T11:02:13ZAdd function to retrieve version from an installed packz3brawillyatmailoodotorgcommit 1be3eff999d9f349dbc430701429058d30152778
parent b701a8feda3f99c087b21d82c87429919b056e67
Author: z3bra <willyatmailoodotorg>
Date: Thu, 16 Jun 2016 13:02:13 +0200
Add function to retrieve version from an installed pack
b701a8feda3f99c087b21d82c87429919b056e672016-06-16T09:58:21Z2016-06-16T10:06:39ZRemove ability to read from stdinz3brawillyatmailoodotorgcommit b701a8feda3f99c087b21d82c87429919b056e67
parent cdc4dc147c7d6aece720af47f6fd85e34619635d
Author: z3bra <willyatmailoodotorg>
Date: Thu, 16 Jun 2016 11:58:21 +0200
Remove ability to read from stdin
<stdin> should be used to read date, not metadata like filenames. The same
behavior can be reproduced with tools like xargs(1), so it's better to rely on
it than reinventing the wheel badly.
cdc4dc147c7d6aece720af47f6fd85e34619635d2016-06-16T09:32:44Z2016-06-16T10:06:39ZRevert "Add ARGLOOP() macro to arg.h"z3brawillyatmailoodotorgcommit cdc4dc147c7d6aece720af47f6fd85e34619635d
parent 1e3c9cc7bfb79be2052b44e6c9c70c95ad0c185b
Author: z3bra <willyatmailoodotorg>
Date: Thu, 16 Jun 2016 11:32:44 +0200
Revert "Add ARGLOOP() macro to arg.h"
This reverts commit e6be1867ce5efe508536369f17164ff2f4448e9c.
stdin should not be used to read metadata (filenames). Keep arg.h untouched.
1e3c9cc7bfb79be2052b44e6c9c70c95ad0c185b2016-05-01T21:50:01Z2016-06-16T10:06:39ZAdd ARGLOOP() macro to arg.hz3brawillyatmailoodotorgcommit 1e3c9cc7bfb79be2052b44e6c9c70c95ad0c185b
parent d17c5f2b5394540d33d5751943f0b9d5e5d5d8df
Author: z3bra <willyatmailoodotorg>
Date: Sun, 1 May 2016 23:50:01 +0200
Add ARGLOOP() macro to arg.h
d17c5f2b5394540d33d5751943f0b9d5e5d5d8df2016-04-25T06:23:02Z2016-06-16T10:06:39ZMake metadata directory world readablez3brawillyatmailoodotorgcommit d17c5f2b5394540d33d5751943f0b9d5e5d5d8df
parent ff4971919f603107c9a8f0144f6b3f174c0f3fb2
Author: z3bra <willyatmailoodotorg>
Date: Mon, 25 Apr 2016 08:23:02 +0200
Make metadata directory world readable
ff4971919f603107c9a8f0144f6b3f174c0f3fb22016-04-24T20:59:58Z2016-06-16T10:06:39ZMove argv/stdin checks into a macroz3brawillyatmailoodotorgcommit ff4971919f603107c9a8f0144f6b3f174c0f3fb2
parent 7f7c044bcd9ba084b1b40b31e32efa4ff03ca72e
Author: z3bra <willyatmailoodotorg>
Date: Sun, 24 Apr 2016 22:59:58 +0200
Move argv/stdin checks into a macro
7f7c044bcd9ba084b1b40b31e32efa4ff03ca72e2016-04-24T18:32:40Z2016-06-16T10:06:38ZSimplify reading arguments or stdinz3brawillyatmailoodotorgcommit 7f7c044bcd9ba084b1b40b31e32efa4ff03ca72e
parent 9971c62e398790939966c62bb1af1fa98fc5c4c2
Author: z3bra <willyatmailoodotorg>
Date: Sun, 24 Apr 2016 20:32:40 +0200
Simplify reading arguments or stdin
9971c62e398790939966c62bb1af1fa98fc5c4c22016-04-19T10:59:55Z2016-06-16T10:06:38ZRefactor code in the main()z3brawillyatmailoodotorgcommit 9971c62e398790939966c62bb1af1fa98fc5c4c2
parent a96b471ef2c41c2d2a6d2763b8b869561b54c00a
Author: z3bra <willyatmailoodotorg>
Date: Tue, 19 Apr 2016 12:59:55 +0200
Refactor code in the main()
install() and update() are now wrappers for pack_install(), and take a
char *path as argument instead of the pack structure.
This brings consistency in the code (as with delete()) and provide a
cleaner interface to deal with inline arguments or stdin.
In the meantime, use of the "const" keyword has been reworked to provide
type checks.
a96b471ef2c41c2d2a6d2763b8b869561b54c00a2016-04-18T16:12:30Z2016-06-16T10:06:38ZHandle reading arguments from stdinz3brawillyatmailoodotorgcommit a96b471ef2c41c2d2a6d2763b8b869561b54c00a
parent c293e2c77808dc0c1f1b292111dd18dd19280a46
Author: z3bra <willyatmailoodotorg>
Date: Mon, 18 Apr 2016 18:12:30 +0200
Handle reading arguments from stdin
This has been implemented for the install/update/delete actions.
For install/update, `pm` will read path of files to be installed.
For delete, `pm` expects pack names to be deleted.
The implementation has to be cleaned up, as the code is duplicated and
featured directly in the main().
But for now, it works!
c293e2c77808dc0c1f1b292111dd18dd19280a462016-01-30T14:24:02Z2016-06-16T10:06:38ZUse mmap to read metadata files in delete()z3brawillyatmailoodotorgcommit c293e2c77808dc0c1f1b292111dd18dd19280a46
parent d66413a9f2f5c91fb4f7e7b5e147e71f6478a881
Author: z3bra <willyatmailoodotorg>
Date: Sat, 30 Jan 2016 15:24:02 +0100
Use mmap to read metadata files in delete()
d66413a9f2f5c91fb4f7e7b5e147e71f6478a8812016-01-30T09:27:16Z2016-06-16T10:06:38ZReplace fgets() with in-house lread()z3brawillyatmailoodotorgcommit d66413a9f2f5c91fb4f7e7b5e147e71f6478a881
parent 166af82b0e517d8d199c9d63ef09739729b3c007
Author: z3bra <willyatmailoodotorg>
Date: Sat, 30 Jan 2016 10:27:16 +0100
Replace fgets() with in-house lread()
166af82b0e517d8d199c9d63ef09739729b3c0072016-01-26T08:52:17Z2016-06-16T10:06:38ZFix segfault when $ROOT is emptyz3brawillyatmailoodotorgcommit 166af82b0e517d8d199c9d63ef09739729b3c007
parent 1faefbbfe0b101f39b95ce9140ced9b692889273
Author: z3bra <willyatmailoodotorg>
Date: Tue, 26 Jan 2016 09:52:17 +0100
Fix segfault when $ROOT is empty
1faefbbfe0b101f39b95ce9140ced9b6928892732016-01-23T10:46:55Z2016-06-16T10:06:38ZHave datadir relative to $ROOTz3brawillyatmailoodotorgcommit 1faefbbfe0b101f39b95ce9140ced9b692889273
parent 6b12ca0f78ebb93d54b883bc2a49876af4d6ba0a
Author: z3bra <willyatmailoodotorg>
Date: Sat, 23 Jan 2016 11:46:55 +0100
Have datadir relative to $ROOT
datadir is now relative to $ROOT and hardcoded to $ROOT/var/pm.
Current debate is now to figure wether it should be in the
environment or not (I don't think so).
$ROOT now defaults to /.
6b12ca0f78ebb93d54b883bc2a49876af4d6ba0a2016-01-23T10:45:14Z2016-06-16T10:06:38ZCleanup makefile/config.mkz3brawillyatmailoodotorgcommit 6b12ca0f78ebb93d54b883bc2a49876af4d6ba0a
parent eb8831e065464bf61242657779cde4f6318ee4f7
Author: z3bra <willyatmailoodotorg>
Date: Sat, 23 Jan 2016 11:45:14 +0100
Cleanup makefile/config.mk
eb8831e065464bf61242657779cde4f6318ee4f72016-01-22T23:16:05Z2016-06-16T10:06:38ZUse $(LIBS) in makefilez3brawillyatmailoodotorgcommit eb8831e065464bf61242657779cde4f6318ee4f7
parent 1b21dc8ab5636c08e05308d6c09827f875cea1d3
Author: z3bra <willyatmailoodotorg>
Date: Sat, 23 Jan 2016 00:16:05 +0100
Use $(LIBS) in makefile
1b21dc8ab5636c08e05308d6c09827f875cea1d32016-01-16T15:40:08Z2016-06-16T10:06:27ZAdd PACK_SEPARATOR to change pack name formatz3brawillyatmailoodotorgcommit 1b21dc8ab5636c08e05308d6c09827f875cea1d3
parent 6145d57d9b2344b47c1b3033b0ac9a4c6328d722
Author: z3bra <willyatmailoodotorg>
Date: Sat, 16 Jan 2016 16:40:08 +0100
Add PACK_SEPARATOR to change pack name format
On the process, the default separator is now '#', as ':' can
be problematic when using rsync(1) or scp(1) (and probably other
softwares/protocols)
One can now change the separator used by pm(1) simply by updating the
macro value in the source.
6145d57d9b2344b47c1b3033b0ac9a4c6328d7222016-01-13T23:28:18Z2016-01-13T23:28:22Zchdir() during unpackingz3brawillyatmailoodotorgcommit 6145d57d9b2344b47c1b3033b0ac9a4c6328d722
parent 886dcf4ddd6603a07716e03a99d0215d3e659a3c
Author: z3bra <willyatmailoodotorg>
Date: Thu, 14 Jan 2016 00:28:18 +0100
chdir() during unpacking
Using chdir() within the unpack() function allow unpacking tarballs
using relative pathnames.
We also need to chdir back to the old directory after every
operation in order to keep this relative path valid.
Another solution could be to readlink(2) all path during pack
loading. We'll see if that's a better option on the long term.
886dcf4ddd6603a07716e03a99d0215d3e659a3c2016-01-13T18:39:45Z2016-01-13T18:39:45ZAdd manual pages for pm(1) and pack(5)z3brawillyatmailoodotorgcommit 886dcf4ddd6603a07716e03a99d0215d3e659a3c
parent 46ebe8eca026d0e03f85bca4398c5fa42013b39a
Author: z3bra <willyatmailoodotorg>
Date: Wed, 13 Jan 2016 19:39:45 +0100
Add manual pages for pm(1) and pack(5)
46ebe8eca026d0e03f85bca4398c5fa42013b39a2016-01-13T18:30:17Z2016-01-13T18:30:17ZUpdate README to reflect recent design changesz3brawillyatmailoodotorgcommit 46ebe8eca026d0e03f85bca4398c5fa42013b39a
parent f1f8bd5a1a8fa4f66843096c09570ea0f52a3951
Author: z3bra <willyatmailoodotorg>
Date: Wed, 13 Jan 2016 19:30:17 +0100
Update README to reflect recent design changes
f1f8bd5a1a8fa4f66843096c09570ea0f52a39512016-01-13T07:16:35Z2016-01-13T07:16:35ZAction to update installed packsz3brawillyatmailoodotorgcommit f1f8bd5a1a8fa4f66843096c09570ea0f52a3951
parent a4da3809f1d5c9ca4a1646bfabab7c121728247f
Author: z3bra <willyatmailoodotorg>
Date: Wed, 13 Jan 2016 08:16:35 +0100
Action to update installed packs
a4da3809f1d5c9ca4a1646bfabab7c121728247f2016-01-12T16:56:06Z2016-01-12T16:56:06ZSet ACTION_INSPECT as the default actionz3brawillyatmailoodotorgcommit a4da3809f1d5c9ca4a1646bfabab7c121728247f
parent 5d666fd2e3404480c49b8830756c1c565d7e7236
Author: z3bra <willyatmailoodotorg>
Date: Tue, 12 Jan 2016 17:56:06 +0100
Set ACTION_INSPECT as the default action
5d666fd2e3404480c49b8830756c1c565d7e72362016-01-12T13:40:37Z2016-01-12T13:40:37ZAdd -v flag to activate verbose modez3brawillyatmailoodotorgcommit 5d666fd2e3404480c49b8830756c1c565d7e7236
parent 73f293913081b16d19635ceb544530a6d7915d48
Author: z3bra <willyatmailoodotorg>
Date: Tue, 12 Jan 2016 14:40:37 +0100
Add -v flag to activate verbose mode
73f293913081b16d19635ceb544530a6d7915d482016-01-12T13:39:48Z2016-01-12T13:39:48ZCheck for installed packs before deletionz3brawillyatmailoodotorgcommit 73f293913081b16d19635ceb544530a6d7915d48
parent f4ccf788a420f7764b4ecfc6288a0622e6777e33
Author: z3bra <willyatmailoodotorg>
Date: Tue, 12 Jan 2016 14:39:48 +0100
Check for installed packs before deletion
f4ccf788a420f7764b4ecfc6288a0622e6777e332016-01-12T13:11:25Z2016-01-12T13:11:25ZReturn errors in case of failed operationsz3brawillyatmailoodotorgcommit f4ccf788a420f7764b4ecfc6288a0622e6777e33
parent 8feb8cec683ac7e4bc9105ad3b8829810c9d8ff7
Author: z3bra <willyatmailoodotorg>
Date: Tue, 12 Jan 2016 14:11:25 +0100
Return errors in case of failed operations
8feb8cec683ac7e4bc9105ad3b8829810c9d8ff72016-01-12T13:09:06Z2016-01-12T13:09:06ZMake error messages lowercasez3brawillyatmailoodotorgcommit 8feb8cec683ac7e4bc9105ad3b8829810c9d8ff7
parent e17765dc52fa7fbd49aed285bd6a591018d833f7
Author: z3bra <willyatmailoodotorg>
Date: Tue, 12 Jan 2016 14:09:06 +0100
Make error messages lowercase
e17765dc52fa7fbd49aed285bd6a591018d833f72016-01-12T13:08:22Z2016-01-12T13:08:22ZAdd check for already installed packsz3brawillyatmailoodotorgcommit e17765dc52fa7fbd49aed285bd6a591018d833f7
parent 1e59dea52f46876bd239166d24fdf680bf8965f1
Author: z3bra <willyatmailoodotorg>
Date: Tue, 12 Jan 2016 14:08:22 +0100
Add check for already installed packs
1e59dea52f46876bd239166d24fdf680bf8965f12016-01-12T12:35:50Z2016-01-12T12:35:50ZMove all libarchive code to unpack()z3brawillyatmailoodotorgcommit 1e59dea52f46876bd239166d24fdf680bf8965f1
parent cdc9e1e65dc1b8a5d90ea60d708e81f599c0f2bf
Author: z3bra <willyatmailoodotorg>
Date: Tue, 12 Jan 2016 13:35:50 +0100
Move all libarchive code to unpack()
cdc9e1e65dc1b8a5d90ea60d708e81f599c0f2bf2016-01-12T11:24:57Z2016-01-12T11:24:57ZFree pack structs failing to loadz3brawillyatmailoodotorgcommit cdc9e1e65dc1b8a5d90ea60d708e81f599c0f2bf
parent e6ba7b3f0f832855bd1ea7323644fcf0c9d39258
Author: z3bra <willyatmailoodotorg>
Date: Tue, 12 Jan 2016 12:24:57 +0100
Free pack structs failing to load
e6ba7b3f0f832855bd1ea7323644fcf0c9d392582016-01-12T09:27:00Z2016-01-12T09:27:00ZCheck for collision before unpackingz3brawillyatmailoodotorgcommit e6ba7b3f0f832855bd1ea7323644fcf0c9d39258
parent e7c528b75ba86304b270abc8181868ed3f5efd32
Author: z3bra <willyatmailoodotorg>
Date: Tue, 12 Jan 2016 10:27:00 +0100
Check for collision before unpacking
e7c528b75ba86304b270abc8181868ed3f5efd322016-01-11T22:16:21Z2016-01-11T22:16:21ZAdd verbosity to delete errorsz3brawillyatmailoodotorgcommit e7c528b75ba86304b270abc8181868ed3f5efd32
parent b4f5118c0b65eea1050fbce7eee1fda92749a1e2
Author: z3bra <willyatmailoodotorg>
Date: Mon, 11 Jan 2016 23:16:21 +0100
Add verbosity to delete errors
b4f5118c0b65eea1050fbce7eee1fda92749a1e22016-01-11T13:12:47Z2016-01-11T13:12:47ZRefactoring and improvement over installation codez3brawillyatmailoodotorgcommit b4f5118c0b65eea1050fbce7eee1fda92749a1e2
parent 124b13d5f0ddef0e683c239655108a1fadb38c66
Author: z3bra <willyatmailoodotorg>
Date: Mon, 11 Jan 2016 14:12:47 +0100
Refactoring and improvement over installation code
Fixed some issues regarding memory freeing, pack struct handling
and inconsistencies across functions names.
Pack will not get installed if they're already installed, unless
the -f flag (force) has been provided.
Deletion of packs will now occur in the following order:
* files installed
* version file
* content file
So that if an error occur, we're still able to list the pack
content, and try to fix errors by hand.
124b13d5f0ddef0e683c239655108a1fadb38c662016-01-10T11:48:56Z2016-01-10T11:48:56ZHave perror() output the targetz3brawillyatmailoodotorgcommit 124b13d5f0ddef0e683c239655108a1fadb38c66
parent f31eb71cbd3446251a1e6ced34dffe41ec6f8525
Author: z3bra <willyatmailoodotorg>
Date: Sun, 10 Jan 2016 12:48:56 +0100
Have perror() output the target
f31eb71cbd3446251a1e6ced34dffe41ec6f85252016-01-08T17:45:54Z2016-01-08T18:15:36ZPrevent buffer overflow while reading content filez3brawillyatmailoodotorgcommit f31eb71cbd3446251a1e6ced34dffe41ec6f8525
parent e27724102e5289a10f3b5bc355b40be37d6b7b49
Author: z3bra <willyatmailoodotorg>
Date: Fri, 8 Jan 2016 18:45:54 +0100
Prevent buffer overflow while reading content file
e27724102e5289a10f3b5bc355b40be37d6b7b492016-01-08T11:47:30Z2016-01-08T11:47:30ZCreate $PREFIX/bin in makefile before installationz3brawillyatmailoodotorgcommit e27724102e5289a10f3b5bc355b40be37d6b7b49
parent cce6b1cec50531e60e5e20a0eb14ae914446bf50
Author: z3bra <willyatmailoodotorg>
Date: Fri, 8 Jan 2016 12:47:30 +0100
Create $PREFIX/bin in makefile before installation
cce6b1cec50531e60e5e20a0eb14ae914446bf502016-01-08T07:45:44Z2016-01-08T07:45:44ZMake deletion process more robust regarding file checkingz3brawillyatmailoodotorgcommit cce6b1cec50531e60e5e20a0eb14ae914446bf50
parent bb81e744a877d4cc21bc2ddee1e15a9da906d058
Author: z3bra <willyatmailoodotorg>
Date: Fri, 8 Jan 2016 08:45:44 +0100
Make deletion process more robust regarding file checking
bb81e744a877d4cc21bc2ddee1e15a9da906d0582016-01-07T22:04:39Z2016-01-07T22:04:39ZMake unpack() more solid regarding file typesz3brawillyatmailoodotorgcommit bb81e744a877d4cc21bc2ddee1e15a9da906d058
parent 3520ebda244371812dd12b04da00df4fc986df18
Author: z3bra <willyatmailoodotorg>
Date: Thu, 7 Jan 2016 23:04:39 +0100
Make unpack() more solid regarding file types
Use archive_write(3) to construct objects on disk, so handling of
symlinks, hardlink, and other types become transparent.
3520ebda244371812dd12b04da00df4fc986df182016-01-07T13:58:21Z2016-01-07T13:58:21ZDon't attempt to remove non existing filesz3brawillyatmailoodotorgcommit 3520ebda244371812dd12b04da00df4fc986df18
parent 505bcbe3ef7f29ac3f26f7d0b0f678a7efe53d55
Author: z3bra <willyatmailoodotorg>
Date: Thu, 7 Jan 2016 14:58:21 +0100
Don't attempt to remove non existing files
505bcbe3ef7f29ac3f26f7d0b0f678a7efe53d552016-01-07T13:20:13Z2016-01-07T13:20:13ZHave unpack() rely on archive_read_extract()z3brawillyatmailoodotorgcommit 505bcbe3ef7f29ac3f26f7d0b0f678a7efe53d55
parent 93c90c6b9d04d01fc6d7b5eefcb0ca488512beb7
Author: z3bra <willyatmailoodotorg>
Date: Thu, 7 Jan 2016 14:20:13 +0100
Have unpack() rely on archive_read_extract()
93c90c6b9d04d01fc6d7b5eefcb0ca488512beb72016-01-05T17:57:36Z2016-01-05T17:57:36ZAdd comments to all functionsz3brawillyatmailoodotorgcommit 93c90c6b9d04d01fc6d7b5eefcb0ca488512beb7
parent 2c21ea32dfdc263efdc030050d16a88f28c2dd48
Author: z3bra <willyatmailoodotorg>
Date: Tue, 5 Jan 2016 18:57:36 +0100
Add comments to all functions
2c21ea32dfdc263efdc030050d16a88f28c2dd482016-01-05T17:08:24Z2016-01-05T17:08:24ZReturn unlink/rmdir status in delete_content()z3brawillyatmailoodotorgcommit 2c21ea32dfdc263efdc030050d16a88f28c2dd48
parent 0561c20abeb8345867dab622822d3abf323b5fff
Author: z3bra <willyatmailoodotorg>
Date: Tue, 5 Jan 2016 18:08:24 +0100
Return unlink/rmdir status in delete_content()
0561c20abeb8345867dab622822d3abf323b5fff2016-01-05T12:16:04Z2016-01-05T12:16:04ZAdd a license to the softwarez3brawillyatmailoodotorgcommit 0561c20abeb8345867dab622822d3abf323b5fff
parent 0405ec2471da2017467913b577de031c00207a64
Author: z3bra <willyatmailoodotorg>
Date: Tue, 5 Jan 2016 13:16:04 +0100
Add a license to the software
0405ec2471da2017467913b577de031c00207a642016-01-05T11:08:32Z2016-01-05T11:08:32ZProtect from segfault when loading packsz3brawillyatmailoodotorgcommit 0405ec2471da2017467913b577de031c00207a64
parent 070bae1b48719edc68bd7975cc5a536274eb8fa7
Author: z3bra <willyatmailoodotorg>
Date: Tue, 5 Jan 2016 12:08:32 +0100
Protect from segfault when loading packs
070bae1b48719edc68bd7975cc5a536274eb8fa72016-01-05T00:46:45Z2016-01-05T00:48:30ZMake .tar.bz2 the only supported formatz3brawillyatmailoodotorgcommit 070bae1b48719edc68bd7975cc5a536274eb8fa7
parent c96c002a084e780cea693b4de0cc8a88b786fdc0
Author: z3bra <willyatmailoodotorg>
Date: Tue, 5 Jan 2016 01:46:45 +0100
Make .tar.bz2 the only supported format
.tar.bz2 is now the only supported format. This enable simpler
package handling, as well as making static linking easier.
static binaries can now be built by adding "-static" to the LDFLAGS
macro in config.mk
c96c002a084e780cea693b4de0cc8a88b786fdc02016-01-05T00:46:06Z2016-01-05T00:46:06ZRemove now useless pack() functionz3brawillyatmailoodotorgcommit c96c002a084e780cea693b4de0cc8a88b786fdc0
parent ed5ad22415c5b5461837d4506b2b8d197dbbf4f4
Author: z3bra <willyatmailoodotorg>
Date: Tue, 5 Jan 2016 01:46:06 +0100
Remove now useless pack() function
ed5ad22415c5b5461837d4506b2b8d197dbbf4f42016-01-05T00:12:34Z2016-01-05T00:12:34ZUse environment to set DATA and ROOT dirz3brawillyatmailoodotorgcommit ed5ad22415c5b5461837d4506b2b8d197dbbf4f4
parent cf3db968258c30b55d3917616bb21df71acd40ed
Author: z3bra <willyatmailoodotorg>
Date: Tue, 5 Jan 2016 01:12:34 +0100
Use environment to set DATA and ROOT dir
cf3db968258c30b55d3917616bb21df71acd40ed2016-01-05T00:00:52Z2016-01-05T00:00:52ZHandle multiple args for ACTION_INSTALLz3brawillyatmailoodotorgcommit cf3db968258c30b55d3917616bb21df71acd40ed
parent 40a21ff7404aca7885609396c77a85216b3cf895
Author: z3bra <willyatmailoodotorg>
Date: Tue, 5 Jan 2016 01:00:52 +0100
Handle multiple args for ACTION_INSTALL
Multiple tarballs can now be installed with pm -a, by simply
passing more arguments on the command line.
All arguments passed after the flags are treated as tarballs.
40a21ff7404aca7885609396c77a85216b3cf8952016-01-04T16:29:57Z2016-01-04T17:23:35ZFix uninitialized valuesz3brawillyatmailoodotorgcommit 40a21ff7404aca7885609396c77a85216b3cf895
parent 767955d994347cf26faf168ebffc73bd3f3584f8
Author: z3bra <willyatmailoodotorg>
Date: Mon, 4 Jan 2016 17:29:57 +0100
Fix uninitialized values
767955d994347cf26faf168ebffc73bd3f3584f82016-01-04T13:08:32Z2016-01-04T13:08:36ZFixed memory leaks in pack loadingz3brawillyatmailoodotorgcommit 767955d994347cf26faf168ebffc73bd3f3584f8
parent fb63ff08cb9d292b1b689ade10fad57a4d485a0d
Author: z3bra <willyatmailoodotorg>
Date: Mon, 4 Jan 2016 14:08:32 +0100
Fixed memory leaks in pack loading
fb63ff08cb9d292b1b689ade10fad57a4d485a0d2015-12-31T10:06:20Z2015-12-31T10:06:20ZCode cleanupz3brawillyatmailoodotorgcommit fb63ff08cb9d292b1b689ade10fad57a4d485a0d
parent be43a04a0611f495360a0211868eb642224715a9
Author: z3bra <willyatmailoodotorg>
Date: Thu, 31 Dec 2015 11:06:20 +0100
Code cleanup
be43a04a0611f495360a0211868eb642224715a92015-12-30T16:23:48Z2015-12-30T16:23:48ZUpdate README with simple usagez3brawillyatmailoodotorgcommit be43a04a0611f495360a0211868eb642224715a9
parent 2c89cf4793591b24f6ec0770250b931479972686
Author: z3bra <willyatmailoodotorg>
Date: Wed, 30 Dec 2015 17:23:48 +0100
Update README with simple usage
2c89cf4793591b24f6ec0770250b9314799726862015-12-30T16:15:37Z2015-12-30T16:23:17ZRely on stat(2) rather than strchrz3brawillyatmailoodotorgcommit 2c89cf4793591b24f6ec0770250b931479972686
parent cf0441277b56ecaae38641dfe2bd5a2355617ac1
Author: z3bra <willyatmailoodotorg>
Date: Wed, 30 Dec 2015 17:15:37 +0100
Rely on stat(2) rather than strchr
stat(2) does a better job at checking if the given name is a
file name, or a pack name. Let's just use it.
cf0441277b56ecaae38641dfe2bd5a2355617ac12015-12-30T16:02:41Z2015-12-30T16:02:41ZInclude version number in metadataz3brawillyatmailoodotorgcommit cf0441277b56ecaae38641dfe2bd5a2355617ac1
parent a90605e2b376486576007c7acb6967ca3af0823f
Author: z3bra <willyatmailoodotorg>
Date: Wed, 30 Dec 2015 17:02:41 +0100
Include version number in metadata
a90605e2b376486576007c7acb6967ca3af0823f2015-12-30T15:31:39Z2015-12-30T15:31:39ZPerform a smart inspectionz3brawillyatmailoodotorgcommit a90605e2b376486576007c7acb6967ca3af0823f
parent fb204995f7751e8a1e834455275fbaa2f44f7bab
Author: z3bra <willyatmailoodotorg>
Date: Wed, 30 Dec 2015 16:31:39 +0100
Perform a smart inspection
The -i flag is used to inspect packages. It can decide what to do
depending on the argument provided with it:
# output the list of installed packs
pm -i
# output the content of an installed pack
pm -i <packname>
# output the content of a pack archive
# (triggered if <pack> contains a '/')
pm -i ./<packfile>