[gentoo-portage-dev] [PATCH] install.py: ignore -Z / --context

2019-11-07 Thread Mike Gilbert
The --context option accepts an optional argument, but only if it is passed via --context=arg. The argparse module does not deal with this properly. To work around this, have argparse ignore this option, and filter out any remaining arguments that start with a hyphen. Bug:

[gentoo-portage-dev] [PATCH v2] install.py: ignore -Z / --context

2019-11-07 Thread Mike Gilbert
The --context option accepts an optional argument, but only if it is passed via --context=arg. The argparse module does not deal with this properly. To work around this, have argparse ignore this option, and filter out any remaining arguments that start with a hyphen and do not occur after a "--"

[gentoo-portage-dev] [PATCH] emirrordist: fix DeletionTask to handle broken symlink

2019-11-07 Thread Zac Medico
After rename of a nonexistent symlink target fails, detect a broken symlink and simply delete it. Fixes: 0d34d89d5028 ("emirrordist: Implement mirror layout.conf support") Bug: https://bugs.gentoo.org/699400 Signed-off-by: Zac Medico --- lib/portage/_emirrordist/DeletionTask.py | 5 + 1

[gentoo-portage-dev] Re: [PATCH] emirrordist: fix DeletionTask to handle broken symlink

2019-11-07 Thread Zac Medico
On 11/7/19 1:01 PM, Zac Medico wrote: > After rename of a nonexistent symlink target fails, detect a > broken symlink and simply delete it. > > Fixes: 0d34d89d5028 ("emirrordist: Implement mirror layout.conf support") > Bug: https://bugs.gentoo.org/699400 > Signed-off-by: Zac Medico > --- >

[gentoo-portage-dev] seed emerge with old /var/db/pkg ?

2019-11-07 Thread Joakim Tjernlund
I am looking for a way to seed emerge with an older pkg db so emerge can calculate which packages needs to be rebuild/upgraded in order to get to the same state as the system pkg db, Is that possible? Also, is there some tool that allows med to copy just files needed for a profile? Something

Re: [gentoo-portage-dev] [PATCH v2] install.py: ignore -Z / --context

2019-11-07 Thread Zac Medico
On 11/7/19 1:18 PM, Mike Gilbert wrote: > The --context option accepts an optional argument, but only if it is > passed via --context=arg. The argparse module does not deal with this > properly. > > To work around this, have argparse ignore this option, and filter out > any remaining arguments

Re: [gentoo-portage-dev] [PATCH] install.py: ignore -Z / --context

2019-11-07 Thread Zac Medico
On 11/7/19 10:22 AM, Mike Gilbert wrote: > The --context option accepts an optional argument, but only if it is > passed via --context=arg. The argparse module does not deal with this > properly. > > To work around this, have argparse ignore this option, and filter out > any remaining arguments

Re: [gentoo-portage-dev] [PATCH] install.py: ignore -Z / --context

2019-11-07 Thread Mike Gilbert
On Thu, Nov 7, 2019 at 3:31 PM Zac Medico wrote: > > On 11/7/19 10:22 AM, Mike Gilbert wrote: > > The --context option accepts an optional argument, but only if it is > > passed via --context=arg. The argparse module does not deal with this > > properly. > > > > To work around this, have argparse