Compare commits

...

7 Commits
0.19.3 ... 0.20

Author SHA1 Message Date
ceb83ff765 buildtree: fix replace invalid char 2020-08-25 21:26:01 +02:00
8b3f5899d3 disable arch extra 2020-07-31 00:24:08 +02:00
c1956b0139 start 0.20 2020-07-26 14:41:54 +02:00
4206fdeff1 buildiso: cp amd fw 2020-07-26 14:41:19 +02:00
ae41ba16c6 buildiso: rm ucode license copying, not present in latest firmware 2020-07-26 12:30:39 +02:00
cf87f88580 pkg2yaml: init pkgbase 2020-07-14 13:40:09 +02:00
76e97b3702 fixes (#35)
buildtree: fix repo msg
comparepkg: fix check_db
deploypkg: use CARCH
2020-06-14 19:59:41 +02:00
15 changed files with 66 additions and 88 deletions

View File

@@ -1,4 +1,4 @@
VERSION=0.19 VERSION=0.20
CHROOT_VERSION=0.10 CHROOT_VERSION=0.10

View File

@@ -94,15 +94,13 @@ show_deps(){
. $src/PKGBUILD 2>/dev/null . $src/PKGBUILD 2>/dev/null
[[ $arch == 'any' ]] && CARCH=any
local archver=$(get_full_version) local archver=$(get_full_version)
[[ -n ${pkgbase} ]] && msg2 "pkgbase: %s" "${pkgbase}" [[ -n ${pkgbase} ]] && msg2 "pkgbase: %s" "${pkgbase}"
msg2 "pkgname: %s" "${pkgname[*]}" msg2 "pkgname: %s" "${pkgname[*]}"
[[ -n $pkgdesc ]] && msg2 "pkgdesc: %s" "${pkgdesc}" [[ -n $pkgdesc ]] && msg2 "pkgdesc: %s" "${pkgdesc}"
msg2 "Arch Version: %s" "$archver" msg2 "Arch Version: %s" "$archver"
msg2 "arch: %s" "$CARCH" msg2 "arch: %s" "$arch"
[[ -n ${makedepends[@]} ]] && msg2 "makedepends: %s" "${makedepends[*]}" [[ -n ${makedepends[@]} ]] && msg2 "makedepends: %s" "${makedepends[*]}"
[[ -n ${checkdepends[@]} ]] && msg2 "checkdepends: %s" "${checkdepends[*]}" [[ -n ${checkdepends[@]} ]] && msg2 "checkdepends: %s" "${checkdepends[*]}"
@@ -133,7 +131,7 @@ from_arch(){
[[ -z $srcpath ]] && die "Package '%s' does not exist!" "${PACKAGE}" [[ -z $srcpath ]] && die "Package '%s' does not exist!" "${PACKAGE}"
local repo=$(find_repo "$srcpath") local repo=$(find_repo "$srcpath")
msg "repo: %s" "$repo" msg "repo: %s" "${repo#*/}"
local archpath=$srcpath/$repo local archpath=$srcpath/$repo
local artixpath=$(find_pkg "${TREE_DIR_ARTIX}" "${PACKAGE}") local artixpath=$(find_pkg "${TREE_DIR_ARTIX}" "${PACKAGE}")
@@ -157,7 +155,7 @@ view_build(){
[[ -z $archpath ]] && die "Package '%s' does not exist!" "${PACKAGE}" [[ -z $archpath ]] && die "Package '%s' does not exist!" "${PACKAGE}"
local repo=$(find_repo "${archpath}") local repo=$(find_repo "${archpath}")
archpath=$archpath/$repo archpath=$archpath/$repo
msg2 "repo: %s" "$repo" msg "repo: %s" "${repo#*/}"
show_deps "$archpath" show_deps "$archpath"
} }

View File

@@ -151,7 +151,7 @@ update_db_cache(){
query_db() { query_db() {
for repo in "${searchrepos[@]}"; do for repo in "${searchrepos[@]}"; do
local prefix= local prefix=
local db=${db_cache_dir}/${LINKSDBEXT}/${ARCH}/${repo}/ local db=${db_cache_dir}/${LINKSDBEXT}/${CARCH}/${repo}/
if [[ -d ${db} ]]; then if [[ -d ${db} ]]; then
while read -rd '' pkg; do while read -rd '' pkg; do
read -r match read -r match
@@ -178,46 +178,25 @@ is_db_entry() {
return 1 return 1
} }
check_pkg_in_db() {
. $pkgbuild 2>/dev/null
local artixver=$(get_full_version)
local is_entry=false
for name in ${pkgname[@]};do
if is_db_entry "$name-$artixver" "$repo";then
is_entry=true
fi
if ! $is_entry;then
msg_row "${tableU}" "$repo" "$name" "$artixver" "$is_entry"
fi
done
unset artixver is_entry pkgbuild pkgver epoch pkgname pkgbase
}
check_new() {
local func="$1"
local pkgbuild=$pkgpath/$CARCH/$repo/PKGBUILD
"$func"
}
check_old() {
local func="$1"
for a in any ${CARCH};do
local pkgbuild=$pkgpath/repos/$repo-$a/PKGBUILD
"$func"
done
}
check_db(){ check_db(){
local pkgpath="${1%/*}" local pkgpath="${1%/*}"
for repo in ${!REPOS[@]};do for repo in ${!REPOS[@]};do
if [[ -f $pkgpath/$CARCH/$repo/PKGBUILD ]]; then local pkgbuild=
check_new "check_pkg_in_db" [[ -f $pkgpath/$CARCH/$repo/PKGBUILD ]] && pkgbuild=$pkgpath/$CARCH/$repo/PKGBUILD
else [[ -f $pkgpath/repos/$repo-$CARCH/PKGBUILD ]] && pkgbuild=$pkgpath/repos/$repo-$CARCH/PKGBUILD
check_old "check_pkg_in_db" [[ -f $pkgpath/repos/$repo-any/PKGBUILD ]] && pkgbuild=$pkgpath/repos/$repo-any/PKGBUILD
. $pkgbuild 2>/dev/null
local artixver=$(get_full_version)
for name in ${pkgname[@]};do
if ! is_db_entry "$name-$artixver" "$repo";then
msg_row "${tableU}" "$repo" "$name" "$artixver" "false"
fi fi
done
unset artixver pkgbuild pkgver epoch pkgname pkgbase
done done
} }

View File

@@ -86,7 +86,7 @@ passfiles="$@"
prepare_dir "${REPOS_ROOT}" prepare_dir "${REPOS_ROOT}"
repo_path=${REPOS_ROOT}/${dest_repo}/os/${ARCH} repo_path=${REPOS_ROOT}/${dest_repo}/os/${CARCH}
if [[ -n ${passfiles[@]} ]]; then if [[ -n ${passfiles[@]} ]]; then
if ${add_pkg}; then if ${add_pkg}; then

View File

@@ -101,6 +101,7 @@ yaml_write_package() {
yaml_write_fileinfo(){ yaml_write_fileinfo(){
local version=$(get_full_version) local version=$(get_full_version)
pkgbase=${pkgbase:-$pkgname}
Yaml+=$(write_yaml_map 0 "version" "${version:-0}") Yaml+=$(write_yaml_map 0 "version" "${version:-0}")
Yaml+=$(write_empty_line) Yaml+=$(write_empty_line)
local pkgfile=$(print_all_package_names) local pkgfile=$(print_all_package_names)

View File

@@ -105,8 +105,8 @@ Include = /etc/pacman.d/mirrorlist
#[testing] #[testing]
#Include = /etc/pacman.d/mirrorlist-arch #Include = /etc/pacman.d/mirrorlist-arch
[extra] #[extra]
Include = /etc/pacman.d/mirrorlist-arch #Include = /etc/pacman.d/mirrorlist-arch
#[community-testing] #[community-testing]
#Include = /etc/pacman.d/mirrorlist-arch #Include = /etc/pacman.d/mirrorlist-arch

View File

@@ -114,17 +114,17 @@ Include = /etc/pacman.d/mirrorlist
# ARCHLINUX # ARCHLINUX
# #
[gnome-unstable] #[gnome-unstable]
Include = /etc/pacman.d/mirrorlist-arch #Include = /etc/pacman.d/mirrorlist-arch
[staging] #[staging]
Include = /etc/pacman.d/mirrorlist-arch #Include = /etc/pacman.d/mirrorlist-arch
[testing] #[testing]
Include = /etc/pacman.d/mirrorlist-arch #Include = /etc/pacman.d/mirrorlist-arch
[extra] #[extra]
Include = /etc/pacman.d/mirrorlist-arch #Include = /etc/pacman.d/mirrorlist-arch
[community-staging] [community-staging]
Include = /etc/pacman.d/mirrorlist-arch Include = /etc/pacman.d/mirrorlist-arch

View File

@@ -111,14 +111,14 @@ Include = /etc/pacman.d/mirrorlist
# ARCHLINUX # ARCHLINUX
# #
[staging] #[staging]
Include = /etc/pacman.d/mirrorlist-arch #Include = /etc/pacman.d/mirrorlist-arch
[testing] #[testing]
Include = /etc/pacman.d/mirrorlist-arch #Include = /etc/pacman.d/mirrorlist-arch
[extra] #[extra]
Include = /etc/pacman.d/mirrorlist-arch #Include = /etc/pacman.d/mirrorlist-arch
[community-staging] [community-staging]
Include = /etc/pacman.d/mirrorlist-arch Include = /etc/pacman.d/mirrorlist-arch

View File

@@ -102,11 +102,11 @@ Include = /etc/pacman.d/mirrorlist
# ARCHLINUX # ARCHLINUX
# #
[testing] #[testing]
Include = /etc/pacman.d/mirrorlist-arch #Include = /etc/pacman.d/mirrorlist-arch
[extra] #[extra]
Include = /etc/pacman.d/mirrorlist-arch #Include = /etc/pacman.d/mirrorlist-arch
[community-testing] [community-testing]
Include = /etc/pacman.d/mirrorlist-arch Include = /etc/pacman.d/mirrorlist-arch

View File

@@ -114,17 +114,17 @@ Include = /etc/pacman.d/mirrorlist
# ARCHLINUX # ARCHLINUX
# #
[kde-unstable] #[kde-unstable]
Include = /etc/pacman.d/mirrorlist-arch #Include = /etc/pacman.d/mirrorlist-arch
[staging] #[staging]
Include = /etc/pacman.d/mirrorlist-arch #Include = /etc/pacman.d/mirrorlist-arch
[testing] #[testing]
Include = /etc/pacman.d/mirrorlist-arch #Include = /etc/pacman.d/mirrorlist-arch
[extra] #[extra]
Include = /etc/pacman.d/mirrorlist-arch #Include = /etc/pacman.d/mirrorlist-arch
[community-staging] [community-staging]
Include = /etc/pacman.d/mirrorlist-arch Include = /etc/pacman.d/mirrorlist-arch

View File

@@ -111,14 +111,14 @@ Include = /etc/pacman.d/mirrorlist
# ARCHLINUX # ARCHLINUX
# #
[staging] #[staging]
Include = /etc/pacman.d/mirrorlist-arch #Include = /etc/pacman.d/mirrorlist-arch
[testing] #[testing]
Include = /etc/pacman.d/mirrorlist-arch #Include = /etc/pacman.d/mirrorlist-arch
[extra] #[extra]
Include = /etc/pacman.d/mirrorlist-arch #Include = /etc/pacman.d/mirrorlist-arch
[community-staging] [community-staging]
Include = /etc/pacman.d/mirrorlist-arch Include = /etc/pacman.d/mirrorlist-arch

View File

@@ -102,11 +102,11 @@ Include = /etc/pacman.d/mirrorlist
# ARCHLINUX # ARCHLINUX
# #
[testing] #[testing]
Include = /etc/pacman.d/mirrorlist-arch #Include = /etc/pacman.d/mirrorlist-arch
[extra] #[extra]
Include = /etc/pacman.d/mirrorlist-arch #Include = /etc/pacman.d/mirrorlist-arch
[community-testing] [community-testing]
Include = /etc/pacman.d/mirrorlist-arch Include = /etc/pacman.d/mirrorlist-arch

View File

@@ -105,8 +105,8 @@ Include = /etc/pacman.d/mirrorlist
#[testing] #[testing]
#Include = /etc/pacman.d/mirrorlist-arch #Include = /etc/pacman.d/mirrorlist-arch
[extra] #[extra]
Include = /etc/pacman.d/mirrorlist-arch #Include = /etc/pacman.d/mirrorlist-arch
#[community-testing] #[community-testing]
#Include = /etc/pacman.d/mirrorlist-arch #Include = /etc/pacman.d/mirrorlist-arch

View File

@@ -15,9 +15,8 @@
prepare_boot_extras(){ prepare_boot_extras(){
local src="$1" dest=${iso_root}/boot local src="$1" dest=${iso_root}/boot
for u in intel amd;do for fw in intel amd; do
cp $src/boot/$u-ucode.img $dest/$u-ucode.img cp $src/boot/$fw-ucode.img $dest/$fw-ucode.img
cp $src/usr/share/licenses/$u-ucode/LICENSE $dest/$u-ucode.LICENSE
done done
cp $src/boot/memtest86+/memtest.bin $dest/memtest cp $src/boot/memtest86+/memtest.bin $dest/memtest

View File

@@ -17,7 +17,8 @@ shopt -s extglob
get_compliant_name(){ get_compliant_name(){
local gitname="$1" local gitname="$1"
case "$gitname" in case "$gitname" in
*+) gitname=${gitname//+/plus} *+) gitname=${gitname//+/plus} ;;
*+*) gitname=${gitname//+/-} ;;
esac esac
echo "$gitname" echo "$gitname"
} }