# HG changeset patch # User John Floren # Date 1315874652 25200 # Node ID 6458753df6cb964cbca90a9deda928fd8f0d1a68 # Parent 25075206688700f15767d6a6cae84c3b2f416f7f installed: removed it pm/*: scripts that care about 'installed' now just touch it if it's missing. R=nix-dev, rminnich CC=nix-dev http://codereview.appspot.com/4999044 diff -r 250752066887 -r 6458753df6cb contrib/packages/installed --- a/contrib/packages/installed Mon Sep 12 17:37:45 2011 -0700 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,3 +0,0 @@ -lib/bz2 -lib/openssl -lib/z diff -r 250752066887 -r 6458753df6cb rc/bin/pm/install --- a/rc/bin/pm/install Mon Sep 12 17:37:45 2011 -0700 +++ b/rc/bin/pm/install Mon Sep 12 17:44:12 2011 -0700 @@ -19,6 +19,10 @@ exit 'invalid arg' } +if (! test -e $ROOT^/contrib/packages/installed) { + touch $ROOT^/contrib/packages/installed +} + for (PKGNAME in $*) { @{ echo '•••Installing package '^$PKGNAME^'•••' diff -r 250752066887 -r 6458753df6cb rc/bin/pm/list --- a/rc/bin/pm/list Mon Sep 12 17:37:45 2011 -0700 +++ b/rc/bin/pm/list Mon Sep 12 17:44:12 2011 -0700 @@ -41,6 +41,10 @@ } } +if (! test -e $ROOT^/contrib/packages/installed) { + touch $ROOT^/contrib/packages/installed +} + if (~ $INSTALLED 1) { @{ cd $PKGROOT^/contrib/packages/ if (~ $VERBOSE 1) echo '======================' diff -r 250752066887 -r 6458753df6cb rc/bin/pm/remove --- a/rc/bin/pm/remove Mon Sep 12 17:37:45 2011 -0700 +++ b/rc/bin/pm/remove Mon Sep 12 17:44:12 2011 -0700 @@ -15,6 +15,10 @@ exit 'invalid arg' } +if (! test -e $ROOT^/contrib/packages/installed) { + touch $ROOT^/contrib/packages/installed +} + for (PKGNAME in $*) { @{ echo '•••Removing package '^$PKGNAME^'•••'