Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
850ca56ff7 | |||
c6b6f6062d | |||
ba55fe2f2d | |||
e2cd817f72 | |||
8945817ba4 | |||
c0570e273b | |||
9987663dc4 |
@ -2,8 +2,7 @@
|
|||||||
|
|
||||||
# scripts is free software: you can redistribute it and/or modify
|
# scripts is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
# the Free Software Foundation, either version 3 of the License, or
|
# the Free Software Foundation, version 3.
|
||||||
# (at your option) any later version.
|
|
||||||
|
|
||||||
# scripts is distributed in the hope that it will be useful,
|
# scripts is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@ -13,7 +12,7 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with scripts. If not, see <https://www.gnu.org/licenses/>.
|
# along with scripts. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
# Original author: Maciej Barć (xgqt@protonmail.com)
|
# Original author: Maciej Barć <xgqt@riseup.net>
|
||||||
# Copyright (c) 2020, src_prepare group
|
# Copyright (c) 2020, src_prepare group
|
||||||
# Licensed under the GNU GPL v3 License
|
# Licensed under the GNU GPL v3 License
|
||||||
|
|
||||||
|
28
README.md
28
README.md
@ -1,3 +1,5 @@
|
|||||||
|
# Scripts
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<a href="https://gitlab.com/src_prepare/scripts/pipelines">
|
<a href="https://gitlab.com/src_prepare/scripts/pipelines">
|
||||||
<img src="https://gitlab.com/src_prepare/scripts/badges/master/pipeline.svg">
|
<img src="https://gitlab.com/src_prepare/scripts/badges/master/pipeline.svg">
|
||||||
@ -20,6 +22,30 @@
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
||||||
# Scripts
|
# About
|
||||||
|
|
||||||
Miscellaneous maintenance scripts by src_prepare group
|
Miscellaneous maintenance scripts by src_prepare group
|
||||||
|
|
||||||
|
|
||||||
|
# License
|
||||||
|
|
||||||
|
SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
|
## Unless otherwise stated contents here are under the GNU GPL v3 license
|
||||||
|
|
||||||
|
This file is part of scripts.
|
||||||
|
|
||||||
|
scripts 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, version 3.
|
||||||
|
|
||||||
|
scripts 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 scripts. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Copyright (c) 2020-2021, src_prepare group
|
||||||
|
Licensed under the GNU GPL v3 License
|
||||||
|
@ -5,8 +5,7 @@
|
|||||||
|
|
||||||
# scripts is free software: you can redistribute it and/or modify
|
# scripts is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
# the Free Software Foundation, either version 3 of the License, or
|
# the Free Software Foundation, version 3.
|
||||||
# (at your option) any later version.
|
|
||||||
|
|
||||||
# scripts is distributed in the hope that it will be useful,
|
# scripts is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@ -16,7 +15,7 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with scripts. If not, see <https://www.gnu.org/licenses/>.
|
# along with scripts. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
# Original author: Maciej Barć (xgqt@protonmail.com)
|
# Original author: Maciej Barć <xgqt@riseup.net>
|
||||||
# Copyright (c) 2020, src_prepare group
|
# Copyright (c) 2020, src_prepare group
|
||||||
# Licensed under the GNU GPL v3 License
|
# Licensed under the GNU GPL v3 License
|
||||||
|
|
||||||
|
@ -5,8 +5,7 @@
|
|||||||
|
|
||||||
# scripts is free software: you can redistribute it and/or modify
|
# scripts is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
# the Free Software Foundation, either version 3 of the License, or
|
# the Free Software Foundation, version 3.
|
||||||
# (at your option) any later version.
|
|
||||||
|
|
||||||
# scripts is distributed in the hope that it will be useful,
|
# scripts is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@ -16,7 +15,7 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with scripts. If not, see <https://www.gnu.org/licenses/>.
|
# along with scripts. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
# Original author: Maciej Barć <xgqt@protonmail.com>
|
# Original author: Maciej Barć <xgqt@riseup.net>
|
||||||
# Copyright (c) 2021, src_prepare group
|
# Copyright (c) 2021, src_prepare group
|
||||||
# Licensed under the GNU GPL v3 License
|
# Licensed under the GNU GPL v3 License
|
||||||
|
|
||||||
|
@ -5,8 +5,7 @@
|
|||||||
|
|
||||||
# scripts is free software: you can redistribute it and/or modify
|
# scripts is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
# the Free Software Foundation, either version 3 of the License, or
|
# the Free Software Foundation, version 3.
|
||||||
# (at your option) any later version.
|
|
||||||
|
|
||||||
# scripts is distributed in the hope that it will be useful,
|
# scripts is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@ -16,7 +15,7 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with scripts. If not, see <https://www.gnu.org/licenses/>.
|
# along with scripts. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
# Original author: Maciej Barć <xgqt@protonmail.com>
|
# Original author: Maciej Barć <xgqt@riseup.net>
|
||||||
# Copyright (c) 2020-2021, src_prepare group
|
# Copyright (c) 2020-2021, src_prepare group
|
||||||
# Licensed under the GNU GPL v3 License
|
# Licensed under the GNU GPL v3 License
|
||||||
|
|
||||||
|
@ -5,8 +5,7 @@
|
|||||||
|
|
||||||
# scripts is free software: you can redistribute it and/or modify
|
# scripts is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
# the Free Software Foundation, either version 3 of the License, or
|
# the Free Software Foundation, version 3.
|
||||||
# (at your option) any later version.
|
|
||||||
|
|
||||||
# scripts is distributed in the hope that it will be useful,
|
# scripts is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@ -16,7 +15,7 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with scripts. If not, see <https://www.gnu.org/licenses/>.
|
# along with scripts. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
# Original author: Maciej Barć (xgqt@protonmail.com)
|
# Original author: Maciej Barć <xgqt@riseup.net>
|
||||||
# Copyright (c) 2020, src_prepare group
|
# Copyright (c) 2020, src_prepare group
|
||||||
# Licensed under the GNU GPL v3 License
|
# Licensed under the GNU GPL v3 License
|
||||||
|
|
||||||
|
@ -5,8 +5,7 @@
|
|||||||
|
|
||||||
# scripts is free software: you can redistribute it and/or modify
|
# scripts is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
# the Free Software Foundation, either version 3 of the License, or
|
# the Free Software Foundation, version 3.
|
||||||
# (at your option) any later version.
|
|
||||||
|
|
||||||
# scripts is distributed in the hope that it will be useful,
|
# scripts is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@ -16,7 +15,7 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with scripts. If not, see <https://www.gnu.org/licenses/>.
|
# along with scripts. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
# Original author: Maciej Barć (xgqt@protonmail.com)
|
# Original author: Maciej Barć <xgqt@riseup.net>
|
||||||
# Copyright (c) 2020, src_prepare group
|
# Copyright (c) 2020, src_prepare group
|
||||||
# Licensed under the GNU GPL v3 License
|
# Licensed under the GNU GPL v3 License
|
||||||
|
|
||||||
@ -26,21 +25,53 @@ set -e
|
|||||||
export PATH
|
export PATH
|
||||||
|
|
||||||
|
|
||||||
pdir="$(git rev-parse --show-prefix)"
|
|
||||||
|
|
||||||
|
|
||||||
FEATURES="sign"
|
FEATURES="sign"
|
||||||
export FEATURES
|
export FEATURES
|
||||||
|
|
||||||
|
|
||||||
|
package_directory="$(git rev-parse --show-prefix)"
|
||||||
|
package="${package_directory%/}"
|
||||||
|
|
||||||
|
|
||||||
|
error_no_version() {
|
||||||
|
echo "[ERROR]: No version given"
|
||||||
|
echo " Ran with option: ${1}"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
git add .
|
git add .
|
||||||
|
|
||||||
if [ -z "${1}" ]
|
case "${1}"
|
||||||
then
|
in
|
||||||
|
"" )
|
||||||
|
echo "[DEBUG]: no additional arguments/options given"
|
||||||
repoman commit
|
repoman commit
|
||||||
else
|
;;
|
||||||
repoman commit -m "${pdir%/}: ${*}"
|
-b | --bump )
|
||||||
fi
|
echo "[DEBUG]: to be: ${package}: bump to ${2}"
|
||||||
|
if [ -n "${2}" ]
|
||||||
git pull --verbose
|
then
|
||||||
git push --verbose
|
repoman commit -m "${package}: bump to ${2}"
|
||||||
|
else
|
||||||
|
error_no_version "${1}"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
-d | --drop )
|
||||||
|
echo "[DEBUG]: to be: ${package}: drop old ${2}"
|
||||||
|
if [ -n "${2}" ]
|
||||||
|
then
|
||||||
|
repoman commit -m "${package}: drop old ${2}"
|
||||||
|
else
|
||||||
|
error_no_version "${1}"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
-* )
|
||||||
|
echo "[ERROR]: Unknown option ${1}"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
* )
|
||||||
|
echo "[DEBUG]: to be: ${package}: ${*}"
|
||||||
|
repoman commit -m "${package}: ${*}"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
11
src/eball
11
src/eball
@ -5,8 +5,7 @@
|
|||||||
|
|
||||||
# scripts is free software: you can redistribute it and/or modify
|
# scripts is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
# the Free Software Foundation, either version 3 of the License, or
|
# the Free Software Foundation, version 3.
|
||||||
# (at your option) any later version.
|
|
||||||
|
|
||||||
# scripts is distributed in the hope that it will be useful,
|
# scripts is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@ -16,7 +15,7 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with scripts. If not, see <https://www.gnu.org/licenses/>.
|
# along with scripts. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
# Original author: Maciej Barć (xgqt@protonmail.com)
|
# Original author: Maciej Barć <xgqt@riseup.net>
|
||||||
# Copyright (c) 2020, src_prepare group
|
# Copyright (c) 2020, src_prepare group
|
||||||
# Licensed under the GNU GPL v3 License
|
# Licensed under the GNU GPL v3 License
|
||||||
|
|
||||||
@ -30,9 +29,9 @@ usage() {
|
|||||||
Usage: eball FILES
|
Usage: eball FILES
|
||||||
eball - test new ebuilds
|
eball - test new ebuilds
|
||||||
|
|
||||||
Original author: XGQT
|
Original author: Maciej Barć
|
||||||
Copyright (c) 2020, src_prepare group
|
Copyright (c) 2020-2021, src_prepare group
|
||||||
Licensed under the ISC License
|
Licensed under the GPLv3
|
||||||
HELP
|
HELP
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,8 +5,7 @@
|
|||||||
|
|
||||||
# scripts is free software: you can redistribute it and/or modify
|
# scripts is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
# the Free Software Foundation, either version 3 of the License, or
|
# the Free Software Foundation, version 3.
|
||||||
# (at your option) any later version.
|
|
||||||
|
|
||||||
# scripts is distributed in the hope that it will be useful,
|
# scripts is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@ -16,7 +15,7 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with scripts. If not, see <https://www.gnu.org/licenses/>.
|
# along with scripts. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
# Original author: Maciej Barć (xgqt@protonmail.com)
|
# Original author: Maciej Barć <xgqt@riseup.net>
|
||||||
# Copyright (c) 2020, src_prepare group
|
# Copyright (c) 2020, src_prepare group
|
||||||
# Licensed under the GNU GPL v3 License
|
# Licensed under the GNU GPL v3 License
|
||||||
|
|
||||||
|
@ -5,8 +5,7 @@
|
|||||||
|
|
||||||
# scripts is free software: you can redistribute it and/or modify
|
# scripts is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
# the Free Software Foundation, either version 3 of the License, or
|
# the Free Software Foundation, version 3.
|
||||||
# (at your option) any later version.
|
|
||||||
|
|
||||||
# scripts is distributed in the hope that it will be useful,
|
# scripts is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@ -16,7 +15,7 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with scripts. If not, see <https://www.gnu.org/licenses/>.
|
# along with scripts. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
# Original author: Maciej Barć (xgqt@protonmail.com)
|
# Original author: Maciej Barć <xgqt@riseup.net>
|
||||||
# Copyright (c) 2020, src_prepare group
|
# Copyright (c) 2020, src_prepare group
|
||||||
# Licensed under the GNU GPL v3 License
|
# Licensed under the GNU GPL v3 License
|
||||||
|
|
||||||
|
@ -4,8 +4,7 @@
|
|||||||
|
|
||||||
# scripts is free software: you can redistribute it and/or modify
|
# scripts is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
# the Free Software Foundation, either version 3 of the License, or
|
# the Free Software Foundation, version 3.
|
||||||
# (at your option) any later version.
|
|
||||||
|
|
||||||
# scripts is distributed in the hope that it will be useful,
|
# scripts is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
@ -5,8 +5,7 @@
|
|||||||
|
|
||||||
# scripts is free software: you can redistribute it and/or modify
|
# scripts is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
# the Free Software Foundation, either version 3 of the License, or
|
# the Free Software Foundation, version 3.
|
||||||
# (at your option) any later version.
|
|
||||||
|
|
||||||
# scripts is distributed in the hope that it will be useful,
|
# scripts is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@ -16,7 +15,7 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with scripts. If not, see <https://www.gnu.org/licenses/>.
|
# along with scripts. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
# Original author: Maciej Barć (xgqt@protonmail.com)
|
# Original author: Maciej Barć <xgqt@riseup.net>
|
||||||
# Copyright (c) 2020, src_prepare group
|
# Copyright (c) 2020, src_prepare group
|
||||||
# Licensed under the GNU GPL v3 License
|
# Licensed under the GNU GPL v3 License
|
||||||
|
|
||||||
|
@ -6,8 +6,7 @@ This file is part of scripts.
|
|||||||
|
|
||||||
scripts is free software: you can redistribute it and/or modify
|
scripts is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
the Free Software Foundation, version 3.
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
scripts is distributed in the hope that it will be useful,
|
scripts is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@ -17,8 +16,8 @@ GNU General Public License for more details.
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with scripts. If not, see <https://www.gnu.org/licenses/>.
|
along with scripts. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
Original author: Maciej Barć (xgqt@protonmail.com)
|
Original author: Maciej Barć <xgqt@riseup.net>
|
||||||
Copyright (c) 2020, src_prepare group
|
Copyright (c) 2020-2021, src_prepare group
|
||||||
Licensed under the GNU GPL v3 License
|
Licensed under the GNU GPL v3 License
|
||||||
|
|
||||||
Install Ebuild Dependencies
|
Install Ebuild Dependencies
|
||||||
@ -30,12 +29,13 @@ to emerge dependencies we would just do "emerge --oneshot --onlydeps PKG".
|
|||||||
|
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
import sys
|
||||||
from subprocess import call
|
from subprocess import call
|
||||||
|
|
||||||
|
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
description="Install Ebuild Dependencies",
|
description="Install Ebuild Dependencies",
|
||||||
epilog="Copyright (c) 2020, src_prepare group (License: ISC)"
|
epilog="Copyright (c) 2020-2021, src_prepare group (License: GPLv3)"
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"ebuild",
|
"ebuild",
|
||||||
@ -46,16 +46,14 @@ args = parser.parse_args()
|
|||||||
|
|
||||||
|
|
||||||
def pkg_name(pkg_str):
|
def pkg_name(pkg_str):
|
||||||
"""Parse string and return a pkg name"""
|
"""
|
||||||
|
Parse string and return a pkg name.
|
||||||
|
"""
|
||||||
|
|
||||||
# TODO: don't strip but force
|
# TODO: don't strip but force
|
||||||
|
|
||||||
proper = ""
|
|
||||||
|
|
||||||
# Strip required use
|
# Strip required use
|
||||||
for i in ["["]:
|
proper = pkg_str.split("[")[0]
|
||||||
if i in pkg_str:
|
|
||||||
proper = pkg_str.split(i)[0]
|
|
||||||
|
|
||||||
# Strip conditional use
|
# Strip conditional use
|
||||||
for i in ["$", "DEPEND", "||", "!", "?", "(", ")"]:
|
for i in ["$", "DEPEND", "||", "!", "?", "(", ")"]:
|
||||||
@ -66,12 +64,21 @@ def pkg_name(pkg_str):
|
|||||||
|
|
||||||
|
|
||||||
def ebuild_deps(ebuild_file):
|
def ebuild_deps(ebuild_file):
|
||||||
"""Returns dependencies from a ebuild file"""
|
"""
|
||||||
|
Returns dependencies from a ebuild file.
|
||||||
|
"""
|
||||||
|
|
||||||
deps = []
|
deps = []
|
||||||
adddeps = False
|
adddeps = False
|
||||||
|
|
||||||
with open(ebuild_file) as ebuild:
|
with open(ebuild_file) as ebuild:
|
||||||
for line in ebuild.read().splitlines():
|
for line in ebuild.read().splitlines():
|
||||||
if adddeps:
|
|
||||||
|
# TODO: Find a better way to find the depend "block"
|
||||||
|
if "DEPEND" in line:
|
||||||
|
adddeps = True
|
||||||
|
|
||||||
|
elif adddeps:
|
||||||
# TODO: Find a better pkg match method
|
# TODO: Find a better pkg match method
|
||||||
if "/" in line:
|
if "/" in line:
|
||||||
deps.append(
|
deps.append(
|
||||||
@ -79,16 +86,20 @@ def ebuild_deps(ebuild_file):
|
|||||||
)
|
)
|
||||||
elif "\"" in line:
|
elif "\"" in line:
|
||||||
adddeps = False
|
adddeps = False
|
||||||
# TODO: Find a better way to find the depend "block"
|
|
||||||
elif "DEPEND" in line:
|
|
||||||
adddeps = True
|
|
||||||
return deps
|
return deps
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
"""The main function"""
|
"""
|
||||||
|
The main function.
|
||||||
|
"""
|
||||||
print("Ebuilds:", args.ebuild)
|
print("Ebuilds:", args.ebuild)
|
||||||
|
|
||||||
|
if args.ebuild == []:
|
||||||
|
print("[ERROR]: No ebuilds given")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
all_deps = []
|
all_deps = []
|
||||||
|
|
||||||
for ebuild in args.ebuild:
|
for ebuild in args.ebuild:
|
||||||
|
@ -6,8 +6,7 @@ This file is part of scripts.
|
|||||||
|
|
||||||
scripts is free software: you can redistribute it and/or modify
|
scripts is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
the Free Software Foundation, version 3.
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
scripts is distributed in the hope that it will be useful,
|
scripts is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@ -17,7 +16,7 @@ GNU General Public License for more details.
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with scripts. If not, see <https://www.gnu.org/licenses/>.
|
along with scripts. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
Original author: Maciej Barć (xgqt@protonmail.com)
|
Original author: Maciej Barć <xgqt@riseup.net>
|
||||||
Copyright (c) 2020, src_prepare group
|
Copyright (c) 2020, src_prepare group
|
||||||
Licensed under the GNU GPL v3 License
|
Licensed under the GNU GPL v3 License
|
||||||
|
|
||||||
|
@ -5,8 +5,7 @@
|
|||||||
|
|
||||||
# scripts is free software: you can redistribute it and/or modify
|
# scripts is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
# the Free Software Foundation, either version 3 of the License, or
|
# the Free Software Foundation, version 3.
|
||||||
# (at your option) any later version.
|
|
||||||
|
|
||||||
# scripts is distributed in the hope that it will be useful,
|
# scripts is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@ -16,7 +15,7 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with scripts. If not, see <https://www.gnu.org/licenses/>.
|
# along with scripts. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
# Original author: Maciej Barć (xgqt@protonmail.com)
|
# Original author: Maciej Barć <xgqt@riseup.net>
|
||||||
# Copyright (c) 2020, src_prepare group
|
# Copyright (c) 2020, src_prepare group
|
||||||
# Licensed under the GNU GPL v3 License
|
# Licensed under the GNU GPL v3 License
|
||||||
|
|
||||||
|
5
src/pn
5
src/pn
@ -5,8 +5,7 @@
|
|||||||
|
|
||||||
# scripts is free software: you can redistribute it and/or modify
|
# scripts is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
# the Free Software Foundation, either version 3 of the License, or
|
# the Free Software Foundation, version 3.
|
||||||
# (at your option) any later version.
|
|
||||||
|
|
||||||
# scripts is distributed in the hope that it will be useful,
|
# scripts is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@ -16,7 +15,7 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with scripts. If not, see <https://www.gnu.org/licenses/>.
|
# along with scripts. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
# Original author: Maciej Barć (xgqt@protonmail.com)
|
# Original author: Maciej Barć <xgqt@riseup.net>
|
||||||
# Copyright (c) 2020, src_prepare group
|
# Copyright (c) 2020, src_prepare group
|
||||||
# Licensed under the GNU GPL v3 License
|
# Licensed under the GNU GPL v3 License
|
||||||
|
|
||||||
|
@ -4,8 +4,7 @@
|
|||||||
|
|
||||||
# scripts is free software: you can redistribute it and/or modify
|
# scripts is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
# the Free Software Foundation, either version 3 of the License, or
|
# the Free Software Foundation, version 3.
|
||||||
# (at your option) any later version.
|
|
||||||
|
|
||||||
# scripts is distributed in the hope that it will be useful,
|
# scripts is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
@ -5,8 +5,7 @@
|
|||||||
|
|
||||||
# scripts is free software: you can redistribute it and/or modify
|
# scripts is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
# the Free Software Foundation, either version 3 of the License, or
|
# the Free Software Foundation, version 3.
|
||||||
# (at your option) any later version.
|
|
||||||
|
|
||||||
# scripts is distributed in the hope that it will be useful,
|
# scripts is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@ -16,7 +15,7 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with scripts. If not, see <https://www.gnu.org/licenses/>.
|
# along with scripts. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
# Original author: Maciej Barć (xgqt@protonmail.com)
|
# Original author: Maciej Barć <xgqt@riseup.net>
|
||||||
# Copyright (c) 2020, src_prepare group
|
# Copyright (c) 2020, src_prepare group
|
||||||
# Licensed under the GNU GPL v3 License
|
# Licensed under the GNU GPL v3 License
|
||||||
|
|
||||||
|
@ -5,8 +5,7 @@
|
|||||||
|
|
||||||
# scripts is free software: you can redistribute it and/or modify
|
# scripts is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
# the Free Software Foundation, either version 3 of the License, or
|
# the Free Software Foundation, version 3.
|
||||||
# (at your option) any later version.
|
|
||||||
|
|
||||||
# scripts is distributed in the hope that it will be useful,
|
# scripts is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@ -16,7 +15,7 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with scripts. If not, see <https://www.gnu.org/licenses/>.
|
# along with scripts. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
# Original author: Maciej Barć (xgqt@protonmail.com)
|
# Original author: Maciej Barć <xgqt@riseup.net>
|
||||||
# Copyright (c) 2020, src_prepare group
|
# Copyright (c) 2020, src_prepare group
|
||||||
# Licensed under the GNU GPL v3 License
|
# Licensed under the GNU GPL v3 License
|
||||||
|
|
||||||
|
@ -5,8 +5,7 @@
|
|||||||
|
|
||||||
# scripts is free software: you can redistribute it and/or modify
|
# scripts is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
# the Free Software Foundation, either version 3 of the License, or
|
# the Free Software Foundation, version 3.
|
||||||
# (at your option) any later version.
|
|
||||||
|
|
||||||
# scripts is distributed in the hope that it will be useful,
|
# scripts is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@ -16,7 +15,7 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with scripts. If not, see <https://www.gnu.org/licenses/>.
|
# along with scripts. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
# Original author: Maciej Barć (xgqt@protonmail.com)
|
# Original author: Maciej Barć <xgqt@riseup.net>
|
||||||
# Copyright (c) 2020, src_prepare group
|
# Copyright (c) 2020, src_prepare group
|
||||||
# Licensed under the GNU GPL v3 License
|
# Licensed under the GNU GPL v3 License
|
||||||
|
|
||||||
|
5
test.sh
5
test.sh
@ -5,8 +5,7 @@
|
|||||||
|
|
||||||
# scripts is free software: you can redistribute it and/or modify
|
# scripts is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
# the Free Software Foundation, either version 3 of the License, or
|
# the Free Software Foundation, version 3.
|
||||||
# (at your option) any later version.
|
|
||||||
|
|
||||||
# scripts is distributed in the hope that it will be useful,
|
# scripts is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
@ -16,7 +15,7 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with scripts. If not, see <https://www.gnu.org/licenses/>.
|
# along with scripts. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
# Original author: Maciej Barć (xgqt@protonmail.com)
|
# Original author: Maciej Barć <xgqt@riseup.net>
|
||||||
# Copyright (c) 2020, src_prepare group
|
# Copyright (c) 2020, src_prepare group
|
||||||
# Licensed under the GNU GPL v3 License
|
# Licensed under the GNU GPL v3 License
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user