From 6cae35f2f087a33e17e55857b2f08346b6992bfd Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Thu, 5 Sep 2013 23:33:06 +0400 Subject: Let packages be missed (important for net install) --- install | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'install') diff --git a/install b/install index 6dafdc6..e2aa32b 100755 --- a/install +++ b/install @@ -90,6 +90,7 @@ profiles = [ { 'name': 'Basic', 'desc' : 'Basic system without X', + # Some packages may be absent, they will be skipped: 'packages' : '''locales vim bash-completion mc sudo lynx mutt wget curl openssh-server''', }, { @@ -789,7 +790,11 @@ def install_profile(): logfile=logfile) for p in profiles[profile]['packages'].split(): - cache[p].mark_install() + # Skip if no such package + try: + cache[p].mark_install() + except: + pass cache.commit(download_progress, install_progress) -- cgit v1.2.3