Before we can call this bug complete, the packaging should clean up the
potentially old files that would prevent the bash completion from
working correctly.

I understand we can include a post action that removes the bash
completion files from the old /etc/bash_completion.d/ directory.

Something like this:

if [ -f /etc/bash_completion.d/juju2 ]; then
  rm /etc/bash_completion.d/juju2
fi
if [ -f /etc/bash_completion.d/juju-core ]; then
  rm /etc/bash_completion.d/juju-core
fi
if [ -f /etc/bash_completion.d/juju-core2 ]; then
  rm /etc/bash/completion.d/juju-core2
fi

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1600257

Title:
  The tab completion on juju yields KeyError: 'services'

To manage notifications about this bug go to:
https://bugs.launchpad.net/juju-core/+bug/1600257/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to