Owen Smith [Sat, 25 May 2013 16:23:01 +0000 (12:23 -0400)]
updating changelog
Owen Smith [Tue, 14 May 2013 16:14:40 +0000 (09:14 -0700)]
pkgAcquire::Worker::CurrentSize was changed to unsigned long long
[mspang: Added cast]
Owen Smith [Tue, 14 May 2013 15:56:59 +0000 (11:56 -0400)]
unused eof variable
Owen Smith [Tue, 14 May 2013 15:54:09 +0000 (11:54 -0400)]
removing unused / non-existant header
Michael Spang [Thu, 15 Mar 2012 00:47:18 +0000 (17:47 -0700)]
Merge pull request #1 from jeremyroman/master
Build on Ubuntu oneiric
Jeremy Roman [Wed, 14 Mar 2012 23:24:05 +0000 (19:24 -0400)]
build on Ubuntu oneiric
Michael Spang [Fri, 2 Sep 2011 00:56:49 +0000 (20:56 -0400)]
Install examples
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Fri, 2 Sep 2011 00:54:48 +0000 (20:54 -0400)]
Add note to EOF error
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Fri, 2 Sep 2011 00:52:45 +0000 (20:52 -0400)]
Add examples
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Fri, 2 Sep 2011 00:52:31 +0000 (20:52 -0400)]
Allow underscores in profile names
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Fri, 2 Sep 2011 00:24:23 +0000 (20:24 -0400)]
Make package nonexistence non-fatal by default
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Fri, 2 Sep 2011 00:05:11 +0000 (20:05 -0400)]
Fix some deprecation warnings
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Thu, 1 Sep 2011 23:41:10 +0000 (19:41 -0400)]
Prepare 1.0 release
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Wed, 12 May 2010 06:50:27 +0000 (02:50 -0400)]
Fix description of --profile
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Thu, 31 Dec 2009 03:14:25 +0000 (22:14 -0500)]
Remove tabs
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Thu, 31 Dec 2009 02:55:54 +0000 (21:55 -0500)]
Clarify significant of directive ordering
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Thu, 31 Dec 2009 02:31:53 +0000 (21:31 -0500)]
Add more options
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Thu, 31 Dec 2009 02:10:04 +0000 (21:10 -0500)]
Rename defines to profiles
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Sun, 27 Dec 2009 01:43:11 +0000 (20:43 -0500)]
Add manpage for inapt
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Sat, 26 Dec 2009 22:02:18 +0000 (17:02 -0500)]
Accept --option for APT options
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Sat, 26 Dec 2009 21:59:52 +0000 (16:59 -0500)]
Accept -h option for usage message
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Sat, 26 Dec 2009 20:47:20 +0000 (15:47 -0500)]
Fix clean target
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Fri, 25 Dec 2009 19:57:51 +0000 (14:57 -0500)]
Remove cruft from Makefile
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Fri, 25 Dec 2009 19:43:57 +0000 (14:43 -0500)]
Remove debug message
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Fri, 25 Dec 2009 19:38:41 +0000 (14:38 -0500)]
Add static where possible
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Fri, 25 Dec 2009 19:26:56 +0000 (14:26 -0500)]
Add explicit return to main
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Wed, 23 Dec 2009 05:02:22 +0000 (00:02 -0500)]
Fix typo of closing rather than opening brace
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Tue, 22 Dec 2009 00:35:23 +0000 (19:35 -0500)]
Add debian directory
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Mon, 21 Dec 2009 06:39:20 +0000 (01:39 -0500)]
Remove redundant message when fetch fails
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Mon, 21 Dec 2009 06:33:37 +0000 (01:33 -0500)]
Use APT-style error reporting for unsolvable deps
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Mon, 21 Dec 2009 06:00:57 +0000 (01:00 -0500)]
Allow predicate to specify alternatives
We can now specify any boolean expression using predicates. However the
expression must be in disjunctive normal form.
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Tue, 22 Dec 2009 03:01:09 +0000 (22:01 -0500)]
Finish renaming macros to profiles
Some variable names slipped through.
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Mon, 21 Dec 2009 05:34:09 +0000 (00:34 -0500)]
Allow conditionals to have multiple predicates
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Mon, 21 Dec 2009 05:23:26 +0000 (00:23 -0500)]
Remove duplicate machines for predicates
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Mon, 21 Dec 2009 05:20:57 +0000 (00:20 -0500)]
Add sanity checking
We should not attempt to both install and remove packages or remove
essential packages.
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Mon, 21 Dec 2009 04:52:46 +0000 (23:52 -0500)]
Always remove auto-installed packages
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Michael Spang [Mon, 21 Dec 2009 04:38:43 +0000 (23:38 -0500)]
Fix usage message to show options
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
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>