mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-25 02:52:16 +08:00
52 lines
1.1 KiB
Bash
Executable File
52 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# This program 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 General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>
|
|
|
|
#
|
|
# setup
|
|
#
|
|
_script_name="repoclean remote"
|
|
_build_arch="$_arch"
|
|
_cur_repo=`pwd | awk -F '/' '{print $NF}'`
|
|
_needed_functions="config_handling messages"
|
|
# load functions
|
|
for subroutine in ${_needed_functions}
|
|
do
|
|
source _buildscripts/functions/${subroutine}
|
|
done
|
|
|
|
#
|
|
# main
|
|
#
|
|
cleanup_pkgs()
|
|
{
|
|
title2 "Cleaning repo packages"
|
|
|
|
title2 "running repo-clean"
|
|
repo-clean -m c -s _repo/remote/
|
|
}
|
|
|
|
#
|
|
# startup
|
|
#
|
|
title "${_script_name}"
|
|
|
|
check_configs
|
|
load_configs
|
|
|
|
cleanup_pkgs
|
|
|
|
title "All done"
|
|
newline
|