pm, branch HEAD barely a pack manager 93b07d0960f9e15faf38c6411398cb6c822dd497 2020-06-02T11:04:05Z 2020-06-02T11:04:05Z Rename MANDIR to MANPREFIX Willy Goiffon dev@z3bra.org commit 93b07d0960f9e15faf38c6411398cb6c822dd497 parent b68e1d5ace0e9ecce3f4b8f866489e244a152995 Author: Willy Goiffon <dev@z3bra.org> Date: Tue, 2 Jun 2020 13:04:05 +0200 Rename MANDIR to MANPREFIX b68e1d5ace0e9ecce3f4b8f866489e244a152995 2020-06-02T11:02:02Z 2020-06-02T11:02:02Z Cleanup README Willy Goiffon dev@z3bra.org commit b68e1d5ace0e9ecce3f4b8f866489e244a152995 parent 0c8ca85a678fa09457671f953c91c76a732aafc0 Author: Willy Goiffon <dev@z3bra.org> Date: Tue, 2 Jun 2020 13:02:02 +0200 Cleanup README 0c8ca85a678fa09457671f953c91c76a732aafc0 2020-06-02T09:56:50Z 2020-06-02T09:56:50Z Refresh manpages with examples and up to date information Willy Goiffon dev@z3bra.org commit 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 2619ec20294d69b06bba8d1351f06e4d267eac29 2020-06-02T08:36:28Z 2020-06-02T08:36:28Z Reformat README usage Willy Goiffon dev@z3bra.org commit 2619ec20294d69b06bba8d1351f06e4d267eac29 parent 2011fb1d06f4a9330433f084a251b4a77162ca67 Author: Willy Goiffon <dev@z3bra.org> Date: Tue, 2 Jun 2020 10:36:28 +0200 Reformat README usage 2011fb1d06f4a9330433f084a251b4a77162ca67 2020-05-29T17:16:13Z 2020-05-29T17:22:58Z Fix off-by-one error when copying root path Willy Goiffon dev@z3bra.org commit 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 76c3f28f7015a81b45e92a9779c336bf63adc5fc 2020-05-29T17:14:19Z 2020-05-29T17:22:58Z Update README to be cleaner Willy Goiffon dev@z3bra.org commit 76c3f28f7015a81b45e92a9779c336bf63adc5fc parent 43061929728ba58dd57d8fb3f3b7b28d4904ab80 Author: Willy Goiffon <dev@z3bra.org> Date: Fri, 29 May 2020 19:14:19 +0200 Update README to be cleaner 43061929728ba58dd57d8fb3f3b7b28d4904ab80 2019-07-02T08:58:25Z 2019-07-02T08:58:25Z Provide mkfile to build with plan9's mk Willy Goiffon dev@z3bra.org commit 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 f93efb2ffb3ec69a6fc760ed6ebdd262397ee14b 2019-07-01T09:00:17Z 2019-07-01T09:00:17Z Update contact information in LICENSE Willy Goiffon dev@z3bra.org commit f93efb2ffb3ec69a6fc760ed6ebdd262397ee14b parent 3afe77e21dd955174efc8647a7c04a19370e64ba Author: Willy Goiffon <dev@z3bra.org> Date: Mon, 1 Jul 2019 11:00:17 +0200 Update contact information in LICENSE 3afe77e21dd955174efc8647a7c04a19370e64ba 2019-04-11T09:42:27Z 2019-04-11T09:42:27Z Use ERE instead of BRE for POSIX compliance Adrian Grigore adrian.emil.grigore@gmail.com commit 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 05c187f408ad9b7aeec9434070073f13ff78a0f4 2019-04-11T09:40:51Z 2019-04-11T09:40:51Z Fix config.mk for OpenBSD support z3bra contactatz3bradotorg commit 05c187f408ad9b7aeec9434070073f13ff78a0f4 parent f39448a37649cb6ed9f67e5295970e286a89f52e Author: z3bra <contactatz3bradotorg> Date: Thu, 11 Apr 2019 11:40:51 +0200 Fix config.mk for OpenBSD support f39448a37649cb6ed9f67e5295970e286a89f52e 2019-04-01T07:37:57Z 2019-04-11T08:53:48Z Update contact email in manpages z3bra contactatz3bradotorg commit f39448a37649cb6ed9f67e5295970e286a89f52e parent 76ec1848a58718b2fba8162c8f3e8695bfe12644 Author: z3bra <contactatz3bradotorg> Date: Mon, 1 Apr 2019 09:37:57 +0200 Update contact email in manpages 76ec1848a58718b2fba8162c8f3e8695bfe12644 2019-04-01T07:35:04Z 2019-04-11T08:53:48Z Replace sprintf() with snprintf() call z3bra contactatz3bradotorg commit 76ec1848a58718b2fba8162c8f3e8695bfe12644 parent bbfee43d53ebc2ace9c41c80b6dc30ac3e91b5c6 Author: z3bra <contactatz3bradotorg> Date: Mon, 1 Apr 2019 09:35:04 +0200 Replace sprintf() with snprintf() call bbfee43d53ebc2ace9c41c80b6dc30ac3e91b5c6 2018-10-30T19:25:53Z 2018-10-30T19:25:53Z Display version in verbose mode only in inspect_system() z3bra contactatz3bradotorg commit bbfee43d53ebc2ace9c41c80b6dc30ac3e91b5c6 parent 107ce0e3e0cd0fe71ba49bbe508f3dc393824a96 Author: z3bra <contactatz3bradotorg> Date: Tue, 30 Oct 2018 20:25:53 +0100 Display version in verbose mode only in inspect_system() 107ce0e3e0cd0fe71ba49bbe508f3dc393824a96 2017-11-25T21:15:11Z 2017-11-25T21:15:11Z Remove useless "checking ..." logs z3bra contactatz3bradotorg commit 107ce0e3e0cd0fe71ba49bbe508f3dc393824a96 parent 2c2a64bf081adb86aa5863023ee1c0e68cfea1e3 Author: z3bra <contactatz3bradotorg> Date: Sat, 25 Nov 2017 22:15:11 +0100 Remove useless "checking ..." logs 2c2a64bf081adb86aa5863023ee1c0e68cfea1e3 2017-11-25T20:59:12Z 2017-11-25T20:59:12Z Strip binary by default z3bra contactatz3bradotorg commit 2c2a64bf081adb86aa5863023ee1c0e68cfea1e3 parent 1cf858aeacc51eb954f89638e7c08791f6e78846 Author: z3bra <contactatz3bradotorg> Date: Sat, 25 Nov 2017 21:59:12 +0100 Strip binary by default 1cf858aeacc51eb954f89638e7c08791f6e78846 2017-11-25T20:52:02Z 2017-11-25T20:52:02Z Reword log/error messages for consistency z3bra contactatz3bradotorg commit 1cf858aeacc51eb954f89638e7c08791f6e78846 parent 1122cb5b5c7dc42336705a96f9948cd36b9891a7 Author: z3bra <contactatz3bradotorg> Date: Sat, 25 Nov 2017 21:52:02 +0100 Reword log/error messages for consistency 1122cb5b5c7dc42336705a96f9948cd36b9891a7 2017-11-25T17:34:49Z 2017-11-25T17:34:52Z Only update if versions differ z3bra contactatz3bradotorg commit 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. af900cc7fe4dc5326abf194645263bcbf789cabf 2017-05-15T17:13:07Z 2017-05-15T17:13:07Z Include config.h z3bra contactatz3bradotorg commit af900cc7fe4dc5326abf194645263bcbf789cabf parent f2e9f15006e11c4856048cf0376442c59b0650fb Author: z3bra <contactatz3bradotorg> Date: Mon, 15 May 2017 19:13:07 +0200 Include config.h f2e9f15006e11c4856048cf0376442c59b0650fb 2017-05-05T06:30:08Z 2017-05-05T06:30:08Z Update pack filename format z3bra contactatz3bradotorg commit f2e9f15006e11c4856048cf0376442c59b0650fb parent 7abfe9d3b7af0c91be34242fec36cf3c46f16295 Author: z3bra <contactatz3bradotorg> Date: Fri, 5 May 2017 08:30:08 +0200 Update pack filename format 7abfe9d3b7af0c91be34242fec36cf3c46f16295 2017-05-05T06:28:15Z 2017-05-05T06:28:15Z Make dependencies more explicit in makefile z3bra contactatz3bradotorg commit 7abfe9d3b7af0c91be34242fec36cf3c46f16295 parent 3fd5784d2ea900d1e8ef69be56677d835909695b Author: z3bra <contactatz3bradotorg> Date: Fri, 5 May 2017 08:28:15 +0200 Make dependencies more explicit in makefile 3fd5784d2ea900d1e8ef69be56677d835909695b 2017-05-05T06:26:47Z 2017-05-05T06:27:18Z Move program tweaks to config.h z3bra contactatz3bradotorg commit 3fd5784d2ea900d1e8ef69be56677d835909695b parent b613d5ebdb9d76571ae6be652757ec6e3c6baf4d Author: z3bra <contactatz3bradotorg> Date: Fri, 5 May 2017 08:26:47 +0200 Move program tweaks to config.h b613d5ebdb9d76571ae6be652757ec6e3c6baf4d 2016-12-16T09:40:34Z 2016-12-16T09:40:34Z Allow disabling repository aware features z3bra contactatz3bradotorg commit b613d5ebdb9d76571ae6be652757ec6e3c6baf4d parent 719fc796cedbdd1b2db385d7a6235370d2d21abc Author: z3bra <contactatz3bradotorg> Date: Fri, 16 Dec 2016 10:40:34 +0100 Allow disabling repository aware features 719fc796cedbdd1b2db385d7a6235370d2d21abc 2016-12-16T01:27:06Z 2016-12-16T01:27:06Z Exit if REPO_EXEC fails to run z3bra willyatmailoodotorg commit 719fc796cedbdd1b2db385d7a6235370d2d21abc parent db07b233b50ef3e66363489c8f85cd189525a579 Author: z3bra <willyatmailoodotorg> Date: Fri, 16 Dec 2016 02:27:06 +0100 Exit if REPO_EXEC fails to run db07b233b50ef3e66363489c8f85cd189525a579 2016-12-16T01:07:41Z 2016-12-16T01:07:41Z Give ability to fetch remote packs using an external tool z3bra willyatmailoodotorg commit 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 c98e93ed70eba1d6a5f7fce6b87e15179d5d3171 2016-09-09T11:38:46Z 2016-09-09T11:38:46Z Save full path instead of basename in pack struct z3bra willyatmailoodotorg commit c98e93ed70eba1d6a5f7fce6b87e15179d5d3171 parent ba9dca9b6a14c82f79f297ebc16736c12189f1cf Author: z3bra <willyatmailoodotorg> Date: Fri, 9 Sep 2016 13:38:46 +0200 Save full path instead of basename in pack struct ba9dca9b6a14c82f79f297ebc16736c12189f1cf 2016-09-09T11:38:14Z 2016-09-09T11:38:14Z Add libacl to linked libraries z3bra willyatmailoodotorg commit ba9dca9b6a14c82f79f297ebc16736c12189f1cf parent e9711c9b1d1dc9fd7c3741309cd879cda2ebabc6 Author: z3bra <willyatmailoodotorg> Date: Fri, 9 Sep 2016 13:38:14 +0200 Add libacl to linked libraries e9711c9b1d1dc9fd7c3741309cd879cda2ebabc6 2016-06-22T08:20:56Z 2016-06-22T08:20:56Z Fix bug in inspect_installed() z3bra willyatmailoodotorg commit e9711c9b1d1dc9fd7c3741309cd879cda2ebabc6 parent 11ca8f6728acf195601b904ac0c90cbfff2f2f8f Author: z3bra <willyatmailoodotorg> Date: Wed, 22 Jun 2016 10:20:56 +0200 Fix bug in inspect_installed() 11ca8f6728acf195601b904ac0c90cbfff2f2f8f 2016-06-22T07:54:01Z 2016-06-22T07:54:01Z Clean pack from syystem if update fails z3bra willyatmailoodotorg commit 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. 714472bbfbcc98d91cd52a7ebc7ca205a0601666 2016-06-22T05:14:54Z 2016-06-22T05:14:54Z Explain pack naming convention better z3bra willyatmailoodotorg commit 714472bbfbcc98d91cd52a7ebc7ca205a0601666 parent 7b061f1009b6ce1177e5d5cf694c507009bb5761 Author: z3bra <willyatmailoodotorg> Date: Wed, 22 Jun 2016 07:14:54 +0200 Explain pack naming convention better 7b061f1009b6ce1177e5d5cf694c507009bb5761 2016-06-22T05:14:32Z 2016-06-22T05:14:32Z Add xz(1) compression support z3bra willyatmailoodotorg commit 7b061f1009b6ce1177e5d5cf694c507009bb5761 parent b5e9210a1157c7316f3de603ae7731f084135b7f Author: z3bra <willyatmailoodotorg> Date: Wed, 22 Jun 2016 07:14:32 +0200 Add xz(1) compression support b5e9210a1157c7316f3de603ae7731f084135b7f 2016-06-20T23:56:28Z 2016-06-20T23:56:28Z Updated error messages to be more informative z3bra willyatmailoodotorg commit b5e9210a1157c7316f3de603ae7731f084135b7f parent 365b4680352256efca096caabfcedb6ef654f17d Author: z3bra <willyatmailoodotorg> Date: Tue, 21 Jun 2016 01:56:28 +0200 Updated error messages to be more informative 365b4680352256efca096caabfcedb6ef654f17d 2016-06-20T23:52:52Z 2016-06-20T23:52:52Z Specify pack loading method explicitely z3bra willyatmailoodotorg commit 365b4680352256efca096caabfcedb6ef654f17d parent 74821245d8bf64da7337c48a14622371499a8e4f Author: z3bra <willyatmailoodotorg> Date: Tue, 21 Jun 2016 01:52:52 +0200 Specify pack loading method explicitely 74821245d8bf64da7337c48a14622371499a8e4f 2016-06-20T23:41:37Z 2016-06-20T23:44:05Z Use regexes to extract pack metadata z3bra willyatmailoodotorg commit 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! 95c3494e630efb221d053b015b1aeb0276c8ed36 2016-06-19T21:11:28Z 2016-06-19T21:11:28Z Update manpage to match the current software z3bra willyatmailoodotorg commit 95c3494e630efb221d053b015b1aeb0276c8ed36 parent cff442f1fd7f8d6b3a9b8d3996cadaddf5be5f0c Author: z3bra <willyatmailoodotorg> Date: Sun, 19 Jun 2016 23:11:28 +0200 Update manpage to match the current software cff442f1fd7f8d6b3a9b8d3996cadaddf5be5f0c 2016-06-19T20:53:44Z 2016-06-19T20:53:44Z Update LICENSE z3bra willyatmailoodotorg commit cff442f1fd7f8d6b3a9b8d3996cadaddf5be5f0c parent 953787c303624bcc096216c5ccf232cbadfe0b3c Author: z3bra <willyatmailoodotorg> Date: Sun, 19 Jun 2016 22:53:44 +0200 Update LICENSE 953787c303624bcc096216c5ccf232cbadfe0b3c 2016-06-18T23:39:27Z 2016-06-18T23:39:27Z Load pack from either a tarball or a name z3bra willyatmailoodotorg commit 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. 07cdaa8ebcaebae5fb50e9b28b6977445418bd86 2016-06-18T23:39:13Z 2016-06-18T23:39:13Z Make update() perform an install with overwrite flag set z3bra willyatmailoodotorg commit 07cdaa8ebcaebae5fb50e9b28b6977445418bd86 parent 6e855748b4844361a463e1e0d3a48f04c45eefdf Author: z3bra <willyatmailoodotorg> Date: Sun, 19 Jun 2016 01:39:13 +0200 Make update() perform an install with overwrite flag set 6e855748b4844361a463e1e0d3a48f04c45eefdf 2016-06-18T23:18:18Z 2016-06-18T23:18:18Z Avoid chdir() and work with absolute path z3bra willyatmailoodotorg commit 6e855748b4844361a463e1e0d3a48f04c45eefdf parent 9aee903d9fa062136b5e605cc0b43e7c03252d49 Author: z3bra <willyatmailoodotorg> Date: Sun, 19 Jun 2016 01:18:18 +0200 Avoid chdir() and work with absolute path 9aee903d9fa062136b5e605cc0b43e7c03252d49 2016-06-18T23:17:02Z 2016-06-18T23:17:02Z Cosmetic changes (output message + variable names) z3bra willyatmailoodotorg commit 9aee903d9fa062136b5e605cc0b43e7c03252d49 parent 0290de341b07d207b5b06e7f9597d8c6779e9c87 Author: z3bra <willyatmailoodotorg> Date: Sun, 19 Jun 2016 01:17:02 +0200 Cosmetic changes (output message + variable names) 0290de341b07d207b5b06e7f9597d8c6779e9c87 2016-06-18T20:59:22Z 2016-06-18T20:59:22Z Detail verbosity in man page z3bra willyatmailoodotorg commit 0290de341b07d207b5b06e7f9597d8c6779e9c87 parent ce53dfcafe58e9315780df8764352dfb85df965f Author: z3bra <willyatmailoodotorg> Date: Sat, 18 Jun 2016 22:59:22 +0200 Detail verbosity in man page ce53dfcafe58e9315780df8764352dfb85df965f 2016-06-18T20:40:19Z 2016-06-18T20:40:19Z Make prototype/function declaration consistent z3bra willyatmailoodotorg commit ce53dfcafe58e9315780df8764352dfb85df965f parent 8ac938b57e4fe44d05aa7662a32e21939291f555 Author: z3bra <willyatmailoodotorg> Date: Sat, 18 Jun 2016 22:40:19 +0200 Make prototype/function declaration consistent 8ac938b57e4fe44d05aa7662a32e21939291f555 2016-06-17T23:29:57Z 2016-06-17T23:29:57Z Change back to working dir after pack_delete() z3bra willyatmailoodotorg commit 8ac938b57e4fe44d05aa7662a32e21939291f555 parent e75a29dc260ce4d1a54c83eb9ec5de73c958875d Author: z3bra <willyatmailoodotorg> Date: Sat, 18 Jun 2016 01:29:57 +0200 Change back to working dir after pack_delete() e75a29dc260ce4d1a54c83eb9ec5de73c958875d 2016-06-17T23:19:03Z 2016-06-17T23:21:22Z Rework information logging z3bra willyatmailoodotorg commit 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. 5f251565fd50d808e101a1dcbce3ed48fb9502bb 2016-06-17T23:17:35Z 2016-06-17T23:17:35Z Pass datadir as an argument to pack_delete() z3bra willyatmailoodotorg commit 5f251565fd50d808e101a1dcbce3ed48fb9502bb parent 9d2a5bb11a9e4ca685764375ff8dd6e0f4062b9a Author: z3bra <willyatmailoodotorg> Date: Sat, 18 Jun 2016 01:17:35 +0200 Pass datadir as an argument to pack_delete() 9d2a5bb11a9e4ca685764375ff8dd6e0f4062b9a 2016-06-16T23:10:50Z 2016-06-16T23:10:50Z Don't treat hidden/special directories as packs z3bra willyatmailoodotorg commit 9d2a5bb11a9e4ca685764375ff8dd6e0f4062b9a parent e592a819ac5982f7999174cbea4a4b9c76a24e99 Author: z3bra <willyatmailoodotorg> Date: Fri, 17 Jun 2016 01:10:50 +0200 Don't treat hidden/special directories as packs e592a819ac5982f7999174cbea4a4b9c76a24e99 2016-06-16T23:10:22Z 2016-06-16T23:10:22Z Explode delete() in two functions z3bra willyatmailoodotorg commit e592a819ac5982f7999174cbea4a4b9c76a24e99 parent 77b61b8c42ad62ed77124cf43cb68632ad9d5005 Author: z3bra <willyatmailoodotorg> Date: Fri, 17 Jun 2016 01:10:22 +0200 Explode delete() in two functions 77b61b8c42ad62ed77124cf43cb68632ad9d5005 2016-06-16T11:17:13Z 2016-06-16T11:17:13Z Add ability to load a pack from the metadata directory z3bra willyatmailoodotorg commit 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 1be3eff999d9f349dbc430701429058d30152778 2016-06-16T11:02:13Z 2016-06-16T11:02:13Z Add function to retrieve version from an installed pack z3bra willyatmailoodotorg commit 1be3eff999d9f349dbc430701429058d30152778 parent b701a8feda3f99c087b21d82c87429919b056e67 Author: z3bra <willyatmailoodotorg> Date: Thu, 16 Jun 2016 13:02:13 +0200 Add function to retrieve version from an installed pack b701a8feda3f99c087b21d82c87429919b056e67 2016-06-16T09:58:21Z 2016-06-16T10:06:39Z Remove ability to read from stdin z3bra willyatmailoodotorg commit 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. cdc4dc147c7d6aece720af47f6fd85e34619635d 2016-06-16T09:32:44Z 2016-06-16T10:06:39Z Revert "Add ARGLOOP() macro to arg.h" z3bra willyatmailoodotorg commit 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. 1e3c9cc7bfb79be2052b44e6c9c70c95ad0c185b 2016-05-01T21:50:01Z 2016-06-16T10:06:39Z Add ARGLOOP() macro to arg.h z3bra willyatmailoodotorg commit 1e3c9cc7bfb79be2052b44e6c9c70c95ad0c185b parent d17c5f2b5394540d33d5751943f0b9d5e5d5d8df Author: z3bra <willyatmailoodotorg> Date: Sun, 1 May 2016 23:50:01 +0200 Add ARGLOOP() macro to arg.h d17c5f2b5394540d33d5751943f0b9d5e5d5d8df 2016-04-25T06:23:02Z 2016-06-16T10:06:39Z Make metadata directory world readable z3bra willyatmailoodotorg commit d17c5f2b5394540d33d5751943f0b9d5e5d5d8df parent ff4971919f603107c9a8f0144f6b3f174c0f3fb2 Author: z3bra <willyatmailoodotorg> Date: Mon, 25 Apr 2016 08:23:02 +0200 Make metadata directory world readable ff4971919f603107c9a8f0144f6b3f174c0f3fb2 2016-04-24T20:59:58Z 2016-06-16T10:06:39Z Move argv/stdin checks into a macro z3bra willyatmailoodotorg commit ff4971919f603107c9a8f0144f6b3f174c0f3fb2 parent 7f7c044bcd9ba084b1b40b31e32efa4ff03ca72e Author: z3bra <willyatmailoodotorg> Date: Sun, 24 Apr 2016 22:59:58 +0200 Move argv/stdin checks into a macro 7f7c044bcd9ba084b1b40b31e32efa4ff03ca72e 2016-04-24T18:32:40Z 2016-06-16T10:06:38Z Simplify reading arguments or stdin z3bra willyatmailoodotorg commit 7f7c044bcd9ba084b1b40b31e32efa4ff03ca72e parent 9971c62e398790939966c62bb1af1fa98fc5c4c2 Author: z3bra <willyatmailoodotorg> Date: Sun, 24 Apr 2016 20:32:40 +0200 Simplify reading arguments or stdin 9971c62e398790939966c62bb1af1fa98fc5c4c2 2016-04-19T10:59:55Z 2016-06-16T10:06:38Z Refactor code in the main() z3bra willyatmailoodotorg commit 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. a96b471ef2c41c2d2a6d2763b8b869561b54c00a 2016-04-18T16:12:30Z 2016-06-16T10:06:38Z Handle reading arguments from stdin z3bra willyatmailoodotorg commit 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! c293e2c77808dc0c1f1b292111dd18dd19280a46 2016-01-30T14:24:02Z 2016-06-16T10:06:38Z Use mmap to read metadata files in delete() z3bra willyatmailoodotorg commit c293e2c77808dc0c1f1b292111dd18dd19280a46 parent d66413a9f2f5c91fb4f7e7b5e147e71f6478a881 Author: z3bra <willyatmailoodotorg> Date: Sat, 30 Jan 2016 15:24:02 +0100 Use mmap to read metadata files in delete() d66413a9f2f5c91fb4f7e7b5e147e71f6478a881 2016-01-30T09:27:16Z 2016-06-16T10:06:38Z Replace fgets() with in-house lread() z3bra willyatmailoodotorg commit d66413a9f2f5c91fb4f7e7b5e147e71f6478a881 parent 166af82b0e517d8d199c9d63ef09739729b3c007 Author: z3bra <willyatmailoodotorg> Date: Sat, 30 Jan 2016 10:27:16 +0100 Replace fgets() with in-house lread() 166af82b0e517d8d199c9d63ef09739729b3c007 2016-01-26T08:52:17Z 2016-06-16T10:06:38Z Fix segfault when $ROOT is empty z3bra willyatmailoodotorg commit 166af82b0e517d8d199c9d63ef09739729b3c007 parent 1faefbbfe0b101f39b95ce9140ced9b692889273 Author: z3bra <willyatmailoodotorg> Date: Tue, 26 Jan 2016 09:52:17 +0100 Fix segfault when $ROOT is empty 1faefbbfe0b101f39b95ce9140ced9b692889273 2016-01-23T10:46:55Z 2016-06-16T10:06:38Z Have datadir relative to $ROOT z3bra willyatmailoodotorg commit 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 /. 6b12ca0f78ebb93d54b883bc2a49876af4d6ba0a 2016-01-23T10:45:14Z 2016-06-16T10:06:38Z Cleanup makefile/config.mk z3bra willyatmailoodotorg commit 6b12ca0f78ebb93d54b883bc2a49876af4d6ba0a parent eb8831e065464bf61242657779cde4f6318ee4f7 Author: z3bra <willyatmailoodotorg> Date: Sat, 23 Jan 2016 11:45:14 +0100 Cleanup makefile/config.mk eb8831e065464bf61242657779cde4f6318ee4f7 2016-01-22T23:16:05Z 2016-06-16T10:06:38Z Use $(LIBS) in makefile z3bra willyatmailoodotorg commit eb8831e065464bf61242657779cde4f6318ee4f7 parent 1b21dc8ab5636c08e05308d6c09827f875cea1d3 Author: z3bra <willyatmailoodotorg> Date: Sat, 23 Jan 2016 00:16:05 +0100 Use $(LIBS) in makefile 1b21dc8ab5636c08e05308d6c09827f875cea1d3 2016-01-16T15:40:08Z 2016-06-16T10:06:27Z Add PACK_SEPARATOR to change pack name format z3bra willyatmailoodotorg commit 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. 6145d57d9b2344b47c1b3033b0ac9a4c6328d722 2016-01-13T23:28:18Z 2016-01-13T23:28:22Z chdir() during unpacking z3bra willyatmailoodotorg commit 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. 886dcf4ddd6603a07716e03a99d0215d3e659a3c 2016-01-13T18:39:45Z 2016-01-13T18:39:45Z Add manual pages for pm(1) and pack(5) z3bra willyatmailoodotorg commit 886dcf4ddd6603a07716e03a99d0215d3e659a3c parent 46ebe8eca026d0e03f85bca4398c5fa42013b39a Author: z3bra <willyatmailoodotorg> Date: Wed, 13 Jan 2016 19:39:45 +0100 Add manual pages for pm(1) and pack(5) 46ebe8eca026d0e03f85bca4398c5fa42013b39a 2016-01-13T18:30:17Z 2016-01-13T18:30:17Z Update README to reflect recent design changes z3bra willyatmailoodotorg commit 46ebe8eca026d0e03f85bca4398c5fa42013b39a parent f1f8bd5a1a8fa4f66843096c09570ea0f52a3951 Author: z3bra <willyatmailoodotorg> Date: Wed, 13 Jan 2016 19:30:17 +0100 Update README to reflect recent design changes f1f8bd5a1a8fa4f66843096c09570ea0f52a3951 2016-01-13T07:16:35Z 2016-01-13T07:16:35Z Action to update installed packs z3bra willyatmailoodotorg commit f1f8bd5a1a8fa4f66843096c09570ea0f52a3951 parent a4da3809f1d5c9ca4a1646bfabab7c121728247f Author: z3bra <willyatmailoodotorg> Date: Wed, 13 Jan 2016 08:16:35 +0100 Action to update installed packs a4da3809f1d5c9ca4a1646bfabab7c121728247f 2016-01-12T16:56:06Z 2016-01-12T16:56:06Z Set ACTION_INSPECT as the default action z3bra willyatmailoodotorg commit a4da3809f1d5c9ca4a1646bfabab7c121728247f parent 5d666fd2e3404480c49b8830756c1c565d7e7236 Author: z3bra <willyatmailoodotorg> Date: Tue, 12 Jan 2016 17:56:06 +0100 Set ACTION_INSPECT as the default action 5d666fd2e3404480c49b8830756c1c565d7e7236 2016-01-12T13:40:37Z 2016-01-12T13:40:37Z Add -v flag to activate verbose mode z3bra willyatmailoodotorg commit 5d666fd2e3404480c49b8830756c1c565d7e7236 parent 73f293913081b16d19635ceb544530a6d7915d48 Author: z3bra <willyatmailoodotorg> Date: Tue, 12 Jan 2016 14:40:37 +0100 Add -v flag to activate verbose mode 73f293913081b16d19635ceb544530a6d7915d48 2016-01-12T13:39:48Z 2016-01-12T13:39:48Z Check for installed packs before deletion z3bra willyatmailoodotorg commit 73f293913081b16d19635ceb544530a6d7915d48 parent f4ccf788a420f7764b4ecfc6288a0622e6777e33 Author: z3bra <willyatmailoodotorg> Date: Tue, 12 Jan 2016 14:39:48 +0100 Check for installed packs before deletion f4ccf788a420f7764b4ecfc6288a0622e6777e33 2016-01-12T13:11:25Z 2016-01-12T13:11:25Z Return errors in case of failed operations z3bra willyatmailoodotorg commit f4ccf788a420f7764b4ecfc6288a0622e6777e33 parent 8feb8cec683ac7e4bc9105ad3b8829810c9d8ff7 Author: z3bra <willyatmailoodotorg> Date: Tue, 12 Jan 2016 14:11:25 +0100 Return errors in case of failed operations 8feb8cec683ac7e4bc9105ad3b8829810c9d8ff7 2016-01-12T13:09:06Z 2016-01-12T13:09:06Z Make error messages lowercase z3bra willyatmailoodotorg commit 8feb8cec683ac7e4bc9105ad3b8829810c9d8ff7 parent e17765dc52fa7fbd49aed285bd6a591018d833f7 Author: z3bra <willyatmailoodotorg> Date: Tue, 12 Jan 2016 14:09:06 +0100 Make error messages lowercase e17765dc52fa7fbd49aed285bd6a591018d833f7 2016-01-12T13:08:22Z 2016-01-12T13:08:22Z Add check for already installed packs z3bra willyatmailoodotorg commit e17765dc52fa7fbd49aed285bd6a591018d833f7 parent 1e59dea52f46876bd239166d24fdf680bf8965f1 Author: z3bra <willyatmailoodotorg> Date: Tue, 12 Jan 2016 14:08:22 +0100 Add check for already installed packs 1e59dea52f46876bd239166d24fdf680bf8965f1 2016-01-12T12:35:50Z 2016-01-12T12:35:50Z Move all libarchive code to unpack() z3bra willyatmailoodotorg commit 1e59dea52f46876bd239166d24fdf680bf8965f1 parent cdc9e1e65dc1b8a5d90ea60d708e81f599c0f2bf Author: z3bra <willyatmailoodotorg> Date: Tue, 12 Jan 2016 13:35:50 +0100 Move all libarchive code to unpack() cdc9e1e65dc1b8a5d90ea60d708e81f599c0f2bf 2016-01-12T11:24:57Z 2016-01-12T11:24:57Z Free pack structs failing to load z3bra willyatmailoodotorg commit cdc9e1e65dc1b8a5d90ea60d708e81f599c0f2bf parent e6ba7b3f0f832855bd1ea7323644fcf0c9d39258 Author: z3bra <willyatmailoodotorg> Date: Tue, 12 Jan 2016 12:24:57 +0100 Free pack structs failing to load e6ba7b3f0f832855bd1ea7323644fcf0c9d39258 2016-01-12T09:27:00Z 2016-01-12T09:27:00Z Check for collision before unpacking z3bra willyatmailoodotorg commit e6ba7b3f0f832855bd1ea7323644fcf0c9d39258 parent e7c528b75ba86304b270abc8181868ed3f5efd32 Author: z3bra <willyatmailoodotorg> Date: Tue, 12 Jan 2016 10:27:00 +0100 Check for collision before unpacking e7c528b75ba86304b270abc8181868ed3f5efd32 2016-01-11T22:16:21Z 2016-01-11T22:16:21Z Add verbosity to delete errors z3bra willyatmailoodotorg commit e7c528b75ba86304b270abc8181868ed3f5efd32 parent b4f5118c0b65eea1050fbce7eee1fda92749a1e2 Author: z3bra <willyatmailoodotorg> Date: Mon, 11 Jan 2016 23:16:21 +0100 Add verbosity to delete errors b4f5118c0b65eea1050fbce7eee1fda92749a1e2 2016-01-11T13:12:47Z 2016-01-11T13:12:47Z Refactoring and improvement over installation code z3bra willyatmailoodotorg commit 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. 124b13d5f0ddef0e683c239655108a1fadb38c66 2016-01-10T11:48:56Z 2016-01-10T11:48:56Z Have perror() output the target z3bra willyatmailoodotorg commit 124b13d5f0ddef0e683c239655108a1fadb38c66 parent f31eb71cbd3446251a1e6ced34dffe41ec6f8525 Author: z3bra <willyatmailoodotorg> Date: Sun, 10 Jan 2016 12:48:56 +0100 Have perror() output the target f31eb71cbd3446251a1e6ced34dffe41ec6f8525 2016-01-08T17:45:54Z 2016-01-08T18:15:36Z Prevent buffer overflow while reading content file z3bra willyatmailoodotorg commit f31eb71cbd3446251a1e6ced34dffe41ec6f8525 parent e27724102e5289a10f3b5bc355b40be37d6b7b49 Author: z3bra <willyatmailoodotorg> Date: Fri, 8 Jan 2016 18:45:54 +0100 Prevent buffer overflow while reading content file e27724102e5289a10f3b5bc355b40be37d6b7b49 2016-01-08T11:47:30Z 2016-01-08T11:47:30Z Create $PREFIX/bin in makefile before installation z3bra willyatmailoodotorg commit e27724102e5289a10f3b5bc355b40be37d6b7b49 parent cce6b1cec50531e60e5e20a0eb14ae914446bf50 Author: z3bra <willyatmailoodotorg> Date: Fri, 8 Jan 2016 12:47:30 +0100 Create $PREFIX/bin in makefile before installation cce6b1cec50531e60e5e20a0eb14ae914446bf50 2016-01-08T07:45:44Z 2016-01-08T07:45:44Z Make deletion process more robust regarding file checking z3bra willyatmailoodotorg commit cce6b1cec50531e60e5e20a0eb14ae914446bf50 parent bb81e744a877d4cc21bc2ddee1e15a9da906d058 Author: z3bra <willyatmailoodotorg> Date: Fri, 8 Jan 2016 08:45:44 +0100 Make deletion process more robust regarding file checking bb81e744a877d4cc21bc2ddee1e15a9da906d058 2016-01-07T22:04:39Z 2016-01-07T22:04:39Z Make unpack() more solid regarding file types z3bra willyatmailoodotorg commit 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. 3520ebda244371812dd12b04da00df4fc986df18 2016-01-07T13:58:21Z 2016-01-07T13:58:21Z Don't attempt to remove non existing files z3bra willyatmailoodotorg commit 3520ebda244371812dd12b04da00df4fc986df18 parent 505bcbe3ef7f29ac3f26f7d0b0f678a7efe53d55 Author: z3bra <willyatmailoodotorg> Date: Thu, 7 Jan 2016 14:58:21 +0100 Don't attempt to remove non existing files 505bcbe3ef7f29ac3f26f7d0b0f678a7efe53d55 2016-01-07T13:20:13Z 2016-01-07T13:20:13Z Have unpack() rely on archive_read_extract() z3bra willyatmailoodotorg commit 505bcbe3ef7f29ac3f26f7d0b0f678a7efe53d55 parent 93c90c6b9d04d01fc6d7b5eefcb0ca488512beb7 Author: z3bra <willyatmailoodotorg> Date: Thu, 7 Jan 2016 14:20:13 +0100 Have unpack() rely on archive_read_extract() 93c90c6b9d04d01fc6d7b5eefcb0ca488512beb7 2016-01-05T17:57:36Z 2016-01-05T17:57:36Z Add comments to all functions z3bra willyatmailoodotorg commit 93c90c6b9d04d01fc6d7b5eefcb0ca488512beb7 parent 2c21ea32dfdc263efdc030050d16a88f28c2dd48 Author: z3bra <willyatmailoodotorg> Date: Tue, 5 Jan 2016 18:57:36 +0100 Add comments to all functions 2c21ea32dfdc263efdc030050d16a88f28c2dd48 2016-01-05T17:08:24Z 2016-01-05T17:08:24Z Return unlink/rmdir status in delete_content() z3bra willyatmailoodotorg commit 2c21ea32dfdc263efdc030050d16a88f28c2dd48 parent 0561c20abeb8345867dab622822d3abf323b5fff Author: z3bra <willyatmailoodotorg> Date: Tue, 5 Jan 2016 18:08:24 +0100 Return unlink/rmdir status in delete_content() 0561c20abeb8345867dab622822d3abf323b5fff 2016-01-05T12:16:04Z 2016-01-05T12:16:04Z Add a license to the software z3bra willyatmailoodotorg commit 0561c20abeb8345867dab622822d3abf323b5fff parent 0405ec2471da2017467913b577de031c00207a64 Author: z3bra <willyatmailoodotorg> Date: Tue, 5 Jan 2016 13:16:04 +0100 Add a license to the software 0405ec2471da2017467913b577de031c00207a64 2016-01-05T11:08:32Z 2016-01-05T11:08:32Z Protect from segfault when loading packs z3bra willyatmailoodotorg commit 0405ec2471da2017467913b577de031c00207a64 parent 070bae1b48719edc68bd7975cc5a536274eb8fa7 Author: z3bra <willyatmailoodotorg> Date: Tue, 5 Jan 2016 12:08:32 +0100 Protect from segfault when loading packs 070bae1b48719edc68bd7975cc5a536274eb8fa7 2016-01-05T00:46:45Z 2016-01-05T00:48:30Z Make .tar.bz2 the only supported format z3bra willyatmailoodotorg commit 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 c96c002a084e780cea693b4de0cc8a88b786fdc0 2016-01-05T00:46:06Z 2016-01-05T00:46:06Z Remove now useless pack() function z3bra willyatmailoodotorg commit c96c002a084e780cea693b4de0cc8a88b786fdc0 parent ed5ad22415c5b5461837d4506b2b8d197dbbf4f4 Author: z3bra <willyatmailoodotorg> Date: Tue, 5 Jan 2016 01:46:06 +0100 Remove now useless pack() function ed5ad22415c5b5461837d4506b2b8d197dbbf4f4 2016-01-05T00:12:34Z 2016-01-05T00:12:34Z Use environment to set DATA and ROOT dir z3bra willyatmailoodotorg commit ed5ad22415c5b5461837d4506b2b8d197dbbf4f4 parent cf3db968258c30b55d3917616bb21df71acd40ed Author: z3bra <willyatmailoodotorg> Date: Tue, 5 Jan 2016 01:12:34 +0100 Use environment to set DATA and ROOT dir cf3db968258c30b55d3917616bb21df71acd40ed 2016-01-05T00:00:52Z 2016-01-05T00:00:52Z Handle multiple args for ACTION_INSTALL z3bra willyatmailoodotorg commit 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. 40a21ff7404aca7885609396c77a85216b3cf895 2016-01-04T16:29:57Z 2016-01-04T17:23:35Z Fix uninitialized values z3bra willyatmailoodotorg commit 40a21ff7404aca7885609396c77a85216b3cf895 parent 767955d994347cf26faf168ebffc73bd3f3584f8 Author: z3bra <willyatmailoodotorg> Date: Mon, 4 Jan 2016 17:29:57 +0100 Fix uninitialized values 767955d994347cf26faf168ebffc73bd3f3584f8 2016-01-04T13:08:32Z 2016-01-04T13:08:36Z Fixed memory leaks in pack loading z3bra willyatmailoodotorg commit 767955d994347cf26faf168ebffc73bd3f3584f8 parent fb63ff08cb9d292b1b689ade10fad57a4d485a0d Author: z3bra <willyatmailoodotorg> Date: Mon, 4 Jan 2016 14:08:32 +0100 Fixed memory leaks in pack loading fb63ff08cb9d292b1b689ade10fad57a4d485a0d 2015-12-31T10:06:20Z 2015-12-31T10:06:20Z Code cleanup z3bra willyatmailoodotorg commit fb63ff08cb9d292b1b689ade10fad57a4d485a0d parent be43a04a0611f495360a0211868eb642224715a9 Author: z3bra <willyatmailoodotorg> Date: Thu, 31 Dec 2015 11:06:20 +0100 Code cleanup be43a04a0611f495360a0211868eb642224715a9 2015-12-30T16:23:48Z 2015-12-30T16:23:48Z Update README with simple usage z3bra willyatmailoodotorg commit be43a04a0611f495360a0211868eb642224715a9 parent 2c89cf4793591b24f6ec0770250b931479972686 Author: z3bra <willyatmailoodotorg> Date: Wed, 30 Dec 2015 17:23:48 +0100 Update README with simple usage 2c89cf4793591b24f6ec0770250b931479972686 2015-12-30T16:15:37Z 2015-12-30T16:23:17Z Rely on stat(2) rather than strchr z3bra willyatmailoodotorg commit 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. cf0441277b56ecaae38641dfe2bd5a2355617ac1 2015-12-30T16:02:41Z 2015-12-30T16:02:41Z Include version number in metadata z3bra willyatmailoodotorg commit cf0441277b56ecaae38641dfe2bd5a2355617ac1 parent a90605e2b376486576007c7acb6967ca3af0823f Author: z3bra <willyatmailoodotorg> Date: Wed, 30 Dec 2015 17:02:41 +0100 Include version number in metadata a90605e2b376486576007c7acb6967ca3af0823f 2015-12-30T15:31:39Z 2015-12-30T15:31:39Z Perform a smart inspection z3bra willyatmailoodotorg commit 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>