summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Michael Spang [Mon, 21 Dec 2009 04:38:30 +0000 (23:38 -0500)]
Allow APT options to be specified on the command line
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Mon, 21 Dec 2009 04:26:43 +0000 (23:26 -0500)]
Display broken packages when depedencies are unsolvable
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Tue, 22 Dec 2009 03:22:21 +0000 (22:22 -0500)]
Change garbage-collection option from -z to -g
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Mon, 21 Dec 2009 03:32:40 +0000 (22:32 -0500)]
Fix support for purging packages
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Mon, 21 Dec 2009 03:07:00 +0000 (22:07 -0500)]
Add support for simulating installation
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Mon, 21 Dec 2009 03:01:21 +0000 (22:01 -0500)]
Use APT-style error handling where possible
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Mon, 21 Dec 2009 02:48:12 +0000 (21:48 -0500)]
Fix virtual package handling
If a virtual package has no provides we should not let a valid
pkgIterator slip through.
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Mon, 21 Dec 2009 02:34:45 +0000 (21:34 -0500)]
Simplify use of cache
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Mon, 21 Dec 2009 02:34:03 +0000 (21:34 -0500)]
Add support for purging packages
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Mon, 21 Dec 2009 02:28:02 +0000 (21:28 -0500)]
Simplify use of cache-related variables
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Mon, 21 Dec 2009 02:27:41 +0000 (21:27 -0500)]
Remove support for media changing
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Mon, 21 Dec 2009 02:02:08 +0000 (21:02 -0500)]
Add arguments for purging and simulating
They don't do anything yet.
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Mon, 21 Dec 2009 00:29:23 +0000 (19:29 -0500)]
Support for removing auto-installed packages
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Thu, 17 Dec 2009 22:35:04 +0000 (17:35 -0500)]
Remove "using namespace std"
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Tue, 15 Dec 2009 01:38:30 +0000 (20:38 -0500)]
Use standard input if the input file is "-"
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Mon, 14 Dec 2009 06:25:33 +0000 (01:25 -0500)]
Mark installed packages as not automatically installed
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Sun, 13 Dec 2009 13:55:12 +0000 (08:55 -0500)]
Allow multiples input files to be specified
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Sun, 13 Dec 2009 13:34:48 +0000 (08:34 -0500)]
Automatically select the machine hostname as a profile
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Sun, 13 Dec 2009 13:27:03 +0000 (08:27 -0500)]
Add a "profiles" command to select profiles
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Sun, 13 Dec 2009 13:09:20 +0000 (08:09 -0500)]
Rename macros to profiles
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Sun, 13 Dec 2009 12:37:03 +0000 (07:37 -0500)]
More struct rearrangement
Since packages can have their own predicates it simplifies things to
change the final list of actions to a final list of packages. Then
predicates can be evaluated earlier.
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Sun, 13 Dec 2009 12:14:40 +0000 (07:14 -0500)]
Add a structure to group actions by command
Previously "install foo bar" would be separated into two structures,
now it gets its own struct which has the old structs as children.
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Sun, 13 Dec 2009 11:12:13 +0000 (06:12 -0500)]
Allow alternates to be listed for packages
This allows graceful handling of renamed packages.
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Sun, 13 Dec 2009 07:55:18 +0000 (02:55 -0500)]
Remove the ability to undefine a macro
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Sun, 13 Dec 2009 07:53:53 +0000 (02:53 -0500)]
Allow predicates to be negated
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Sun, 13 Dec 2009 07:15:28 +0000 (02:15 -0500)]
Allow inline predicates before commands and packages
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Sun, 13 Dec 2009 03:52:50 +0000 (22:52 -0500)]
Don't unnecessarily re-mark packages
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Sun, 13 Dec 2009 03:42:35 +0000 (22:42 -0500)]
Allow one-character macros
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Sat, 12 Dec 2009 08:06:03 +0000 (03:06 -0500)]
Handle virtual packages
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Fri, 11 Dec 2009 23:11:16 +0000 (18:11 -0500)]
Require macros to start with a letter
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Fri, 11 Dec 2009 22:37:29 +0000 (17:37 -0500)]
Make error reporting more consistent
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Fri, 11 Dec 2009 22:35:48 +0000 (17:35 -0500)]
Remove unused variable "te"
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Fri, 11 Dec 2009 22:27:31 +0000 (17:27 -0500)]
Remove redundant variable "depth"
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Fri, 11 Dec 2009 22:09:02 +0000 (17:09 -0500)]
Make conditionals test if macros are defined
This makes "if foo" check whether you've run inapt -Dfoo.
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Fri, 11 Dec 2009 22:07:32 +0000 (17:07 -0500)]
Move installation into a separate function
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Fri, 11 Dec 2009 22:02:26 +0000 (17:02 -0500)]
Allow definition of macros on the command line
This allows you to run inapt -Dabc, similarly to gcc.
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Fri, 11 Dec 2009 21:34:08 +0000 (16:34 -0500)]
Make conditionals functional
Currently the condition must be "true" or "false", which is useful
only for testing.
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Wed, 9 Dec 2009 05:07:57 +0000 (00:07 -0500)]
Increase maximum nesting depth for blocks
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Wed, 9 Dec 2009 05:00:19 +0000 (00:00 -0500)]
Remove the error action
Using the error action complicates the statechart for no gain; we can
instead display the message if the machine ends in the error state.
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Wed, 9 Dec 2009 04:34:43 +0000 (23:34 -0500)]
Remove the new machine
Instead of using a separate machine we can keep track of the depth of
nesting and raise an error if we try to close the outermost block.
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Wed, 9 Dec 2009 04:11:33 +0000 (23:11 -0500)]
Add error action to the new machine
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Wed, 9 Dec 2009 04:07:55 +0000 (23:07 -0500)]
Add a new machine for inner blocks
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Wed, 9 Dec 2009 04:07:50 +0000 (23:07 -0500)]
Stop building the DFA image automatically
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Wed, 9 Dec 2009 03:10:19 +0000 (22:10 -0500)]
Preliminary parser support for nested blocks
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Tue, 8 Dec 2009 02:09:06 +0000 (21:09 -0500)]
Add support for simple conditionals
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Fri, 4 Dec 2009 23:43:11 +0000 (18:43 -0500)]
Optimize installation
We don't need to mark already-installed packages for installation.
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Fri, 4 Dec 2009 23:00:46 +0000 (18:00 -0500)]
Take input filename on the command line
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Fri, 4 Dec 2009 00:42:14 +0000 (19:42 -0500)]
Cache a PkgIterator for each package to install
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Fri, 4 Dec 2009 00:20:03 +0000 (19:20 -0500)]
Fail when given invalid package names
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Thu, 3 Dec 2009 23:47:37 +0000 (18:47 -0500)]
Fail loudly on invalid parser output
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Thu, 3 Dec 2009 23:19:07 +0000 (18:19 -0500)]
Make the parser output include line numbers
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Sun, 29 Nov 2009 04:49:38 +0000 (23:49 -0500)]
Add parser.cc to the clean target
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Sun, 29 Nov 2009 04:48:42 +0000 (23:48 -0500)]
Add COPYING
We've stolen code from APT so steal their copyright notice.
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Sun, 29 Nov 2009 04:46:17 +0000 (23:46 -0500)]
Use proper names for source files
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Sun, 29 Nov 2009 04:39:10 +0000 (23:39 -0500)]
Display syntax errors using an error action
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Fri, 20 Nov 2009 05:35:51 +0000 (00:35 -0500)]
Allow shell-style comments in the input file
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Fri, 20 Nov 2009 03:15:34 +0000 (22:15 -0500)]
Add ragel output to .gitignore
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Thu, 19 Nov 2009 07:28:23 +0000 (02:28 -0500)]
Handle end-of-file error properly in the parser
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Thu, 19 Nov 2009 07:22:36 +0000 (02:22 -0500)]
Remove hard-coded packages to install
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Thu, 19 Nov 2009 07:20:12 +0000 (02:20 -0500)]
Install packages based on parser input
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Thu, 19 Nov 2009 06:46:06 +0000 (01:46 -0500)]
Add support for parsing install and remove commands
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Thu, 19 Nov 2009 05:33:18 +0000 (00:33 -0500)]
Copy code from apt-get to display download progress
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Thu, 19 Nov 2009 05:18:31 +0000 (00:18 -0500)]
Add ragel parser for the input file
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Mon, 16 Nov 2009 04:39:38 +0000 (23:39 -0500)]
Copy code from apt-get to perform the installation
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Sun, 15 Nov 2009 00:44:43 +0000 (19:44 -0500)]
Use pkgProblemResolver to resolve conflicts
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Sat, 7 Nov 2009 21:36:23 +0000 (16:36 -0500)]
Initial commit of inapt, declarative DSL for apt
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>