2017-06-05 19:37:56 +03:00
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
*
* Copyright ( C ) 2017 Red Hat Inc .
*
* This program is free software : you can redistribute it and / or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation ; either version 2 of the licence or ( at
* your option ) any later version .
*
* This library is distributed in the hope that it will be useful ,
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the GNU
* Lesser General Public License for more details .
*
* You should have received a copy of the GNU Lesser General
* Public License along with this library ; if not , write to the
* Free Software Foundation , Inc . , 59 Temple Place , Suite 330 ,
* Boston , MA 02111 - 1307 , USA .
*/
# include "config.h"
# include "rpmostree-ex-builtins.h"
# include "rpmostree-override-builtins.h"
static RpmOstreeCommand override_subcommands [ ] = {
2017-07-25 19:59:56 +03:00
{ " replace " , RPM_OSTREE_BUILTIN_FLAG_SUPPORTS_PKG_INSTALLS ,
2017-08-10 23:58:23 +03:00
" Remove packages from the base layer " ,
2017-06-05 19:37:56 +03:00
rpmostree_override_builtin_replace } ,
2017-07-25 19:59:56 +03:00
{ " remove " , RPM_OSTREE_BUILTIN_FLAG_SUPPORTS_PKG_INSTALLS ,
2017-08-10 23:58:23 +03:00
" Remove packages from the base layer " ,
2017-06-05 19:37:56 +03:00
rpmostree_override_builtin_remove } ,
2017-07-25 19:59:56 +03:00
{ " reset " , RPM_OSTREE_BUILTIN_FLAG_SUPPORTS_PKG_INSTALLS ,
2017-08-10 23:58:23 +03:00
" Reset currently active package overrides " ,
2017-06-05 19:37:56 +03:00
rpmostree_override_builtin_reset } ,
2017-08-10 23:58:23 +03:00
{ NULL , 0 , NULL , NULL }
2017-06-05 19:37:56 +03:00
} ;
int
rpmostree_ex_builtin_override ( int argc , char * * argv ,
RpmOstreeCommandInvocation * invocation ,
GCancellable * cancellable , GError * * error )
{
return rpmostree_handle_subcommand ( argc , argv , override_subcommands ,
invocation , cancellable , error ) ;
}