Skip to content

Commit aa2c657

Browse files
authored
Merge branch 'pacstall:master' into master
2 parents 9155c86 + 9e6a9a7 commit aa2c657

File tree

946 files changed

+12748
-4944
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

946 files changed

+12748
-4944
lines changed

.github/workflows/codacy-analysis.yml

Lines changed: 0 additions & 54 deletions
This file was deleted.

.github/workflows/distrolist.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
steps:
2020
- name: checkout
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@v6
2222
with:
2323
ref: master
2424

@@ -72,7 +72,7 @@ jobs:
7272
fi
7373
added_entries="$(echo "$diff_output" | grep '^+ ' | sed 's/^\+ //' | awk -v ORS=', ' '{print "`"$0"`"}' | sed 's/, $//')"
7474
removed_entries="$(echo "$diff_output" | grep '^- ' | sed 's/^- //' | awk -v ORS=', ' '{print "`"$0"`"}' | sed 's/, $//')"
75-
title="upd(distrolist): "
75+
title="ci(distrolist): "
7676
if [[ -n "$added_entries" && -z "$removed_entries" ]]; then
7777
title+="add ${added_entries}"
7878
elif [[ -z "$added_entries" && -n "$removed_entries" ]]; then
@@ -92,7 +92,7 @@ jobs:
9292
9393
- name: Create PR if changes detected
9494
if: env.changes_detected == 'true'
95-
uses: peter-evans/create-pull-request@v7
95+
uses: peter-evans/create-pull-request@v8
9696
with:
9797
token: ${{ secrets.GITHUB_TOKEN }}
9898
add-paths: distrolist

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Label PRs
22

33
on:
44
pull_request_target:
5-
types: [opened, reopened]
5+
types: [opened, reopened, edited]
66

77
jobs:
88
label-pr:

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ jobs:
1111
assign-author:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: toshimaru/auto-author-assign@v2.1.1
14+
- uses: toshimaru/auto-author-assign@v3.0.0

.github/workflows/tests.yml

Lines changed: 13 additions & 120 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ defaults:
1111
run:
1212
shell: bash
1313
jobs:
14-
test-on-ubuntu:
14+
run-tests:
1515
strategy:
1616
matrix:
17-
OS: ["ubuntu:latest", "ubuntu:devel", "ubuntu:rolling"]
17+
OS: ["ubuntu:latest", "ubuntu:devel", "ubuntu:rolling", "debian:stable", "debian:testing", "debian:unstable"]
1818
PACSTALL_VERSION: ["master", "develop"]
1919
fail-fast: false
2020
runs-on: ubuntu-latest
@@ -32,7 +32,7 @@ jobs:
3232
uses: mxschmitt/action-tmate@v3
3333
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }}
3434
- id: checkout
35-
uses: actions/checkout@v4
35+
uses: actions/checkout@v6
3636
- id: paths
3737
uses: dorny/paths-filter@v3
3838
with:
@@ -55,6 +55,7 @@ jobs:
5555
run: |
5656
dpkg --add-architecture i386
5757
dpkg --add-architecture arm64
58+
if [[ $(awk -F= '$1=="ID" { print $2 }' /etc/os-release) == "ubuntu" ]]; then
5859
source /etc/os-release && echo "Types: deb
5960
URIs: http://ports.ubuntu.com/ubuntu-ports/
6061
Suites: ${VERSION_CODENAME} ${VERSION_CODENAME}-updates ${VERSION_CODENAME}-backports
@@ -81,8 +82,10 @@ jobs:
8182
Suites: ${VERSION_CODENAME}-security
8283
Components: main universe restricted multiverse
8384
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
84-
Architectures-Remove: arm64" | tee /etc/apt/sources.list.d/ubuntu.sources && rm -f /etc/apt/sources.list && apt-get update
85-
apt-get install apt-utils curl bash wget git sudo iputils-ping keyboard-configuration lsb-release desktop-file-utils -y
85+
Architectures-Remove: arm64" | tee /etc/apt/sources.list.d/ubuntu.sources && rm -f /etc/apt/sources.list
86+
fi
87+
apt-get update
88+
apt-get install apt-utils curl ca-certificates bash wget git sudo iputils-ping keyboard-configuration lsb-release desktop-file-utils -y --no-install-recommends
8689
ln -fs /usr/share/zoneinfo/Africa/Libreville /etc/localtime
8790
- name: Setup Test User
8891
if: steps.paths.outputs.pacscripts == 'true'
@@ -129,127 +132,17 @@ jobs:
129132
shell: sudo -E -u dio bash {0}
130133
env:
131134
DEBIAN_FRONTEND: noninteractive
132-
- name: Uninstalling Packages
135+
- name: Output Package Trees
133136
if: steps.paths.outputs.pacscripts == 'true'
134137
run: |
135138
export SUDO_USER=$USER
136139
export DEBIAN_FRONTEND=noninteractive
137140
export GITHUB_ACTIONS=true
138-
export METADIR=/var/lib/pacstall/metadata
139-
function array.contains() {
140-
local check
141-
local -n arra="${1:?No array passed to array.contains}"
142-
local input="${2:?No input given to array.contains}"
143-
for check in "${arra[@]}"; do
144-
if [[ ${check} == "${input}" ]]; then
145-
return 0
146-
fi
147-
done
148-
return 1
149-
}
150-
function stacktrace() {
151-
catch=$?
152-
return "${catch}"
153-
}
154-
source /usr/share/pacstall/scripts/dep-tree.sh
155141
mapfile -t list < <(pacstall -L)
156-
dep_tree.loop_traits order "${list[@]}"
157-
for changed_file in "${order[@]}"; do
158-
echo "Running pacstall -R for ${changed_file}..."
159-
pacstall --disable-prompts -R ${changed_file} || exit 1
160-
done
161-
shell: sudo -E -u dio bash {0}
162-
env:
163-
DEBIAN_FRONTEND: noninteractive
164-
165-
test-on-debian:
166-
strategy:
167-
matrix:
168-
OS: ["debian:stable", "debian:testing", "debian:unstable"]
169-
PACSTALL_VERSION: ["master", "develop"]
170-
fail-fast: false
171-
runs-on: ubuntu-latest
172-
container:
173-
image: ${{ matrix.OS }}
174-
options: --privileged
175-
env:
176-
TERM: xterm
177-
shell: bash
178-
USER: dio
179-
LOGNAME: dio
180-
DEBIAN_FRONTEND: noninteractive
181-
steps:
182-
- name: Setup tmate session
183-
uses: mxschmitt/action-tmate@v3
184-
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }}
185-
- id: checkout
186-
uses: actions/checkout@v4
187-
- id: paths
188-
uses: dorny/paths-filter@v3
189-
with:
190-
filters: |
191-
pacscripts:
192-
- 'packages/*/*.pacscript'
193-
- id: files
194-
uses: Ana06/get-changed-files@v2.3.0
195-
- name: Check for Pacscript changes
196-
run: |
197-
touch .no-pacscript-changes
198-
for changed_file in ${{ steps.files.outputs.added_modified }}; do
199-
if [[ ${changed_file} == *".pacscript" ]]; then
200-
rm -f .no-pacscript-changes
201-
break
202-
fi
203-
done
204-
- name: Install System Utilities
205-
if: steps.paths.outputs.pacscripts == 'true'
206-
run: |
207-
dpkg --add-architecture i386
208-
dpkg --add-architecture arm64
209-
apt-get update
210-
apt-get install apt-utils curl bash wget git sudo iputils-ping keyboard-configuration lsb-release desktop-file-utils -y
211-
ln -fs /usr/share/zoneinfo/Africa/Libreville /etc/localtime
212-
- name: Setup Test User
213-
if: steps.paths.outputs.pacscripts == 'true'
214-
run: |
215-
useradd -rm -d /home/$USER -s /bin/bash -g root -G sudo -u 1001 $USER
216-
sudo sed -i "s/%sudo\tALL=(ALL:ALL) ALL/%sudo\tALL=(ALL) NOPASSWD:ALL/g" /etc/sudoers
217-
chown -R $USER /tmp
218-
chmod -R 777 /tmp
219-
- name: Installing Pacstall
220-
if: steps.paths.outputs.pacscripts == 'true'
221-
run: |
222-
export SUDO_USER=$USER
223-
curl -fsSL https://pacstall.dev/q/install\?dnt > pacstall-install.sh || curl -fsSL https://git.io/JsADh > pacstall-install.sh
224-
chmod +x ./pacstall-install.sh
225-
echo N\n | sudo -E ./pacstall-install.sh
226-
rm ./pacstall-install.sh
227-
sudo sed -i 's/ignore_stack=false/ignore_stack=true/g' /usr/bin/pacstall
228-
pacstall -U pacstall ${{ matrix.PACSTALL_VERSION }}
229-
ls -lad /tmp/pacstall
230-
shell: sudo -E -u dio bash {0}
231-
env:
232-
SUDO_USER: dio
233-
- name: Installing Packages
234-
if: steps.paths.outputs.pacscripts == 'true'
235-
run: |
236-
export SUDO_USER=$USER
237-
export DEBIAN_FRONTEND=noninteractive
238-
export GITHUB_ACTIONS=true
239-
export METADIR=/var/lib/pacstall/metadata
240-
PRNUM="$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }')"
241-
for changed_file in ${{ steps.files.outputs.added_modified }}; do
242-
if [[ ${changed_file} == *".pacscript" ]]; then
243-
pacscript_file=`basename "${changed_file}"`
244-
package_name="${pacscript_file/.pacscript/}"
245-
if [[ -f "${METADIR}/${package_name}" ]]; then
246-
echo "Package ${package_name} has already been installed."
247-
else
248-
echo "Running pacstall -Qa for ${package_name}..."
249-
echo "pacstall -Qa ${package_name}#${PRNUM}@github:${GITHUB_REPOSITORY}"
250-
pacstall -Qa ${package_name}#${PRNUM}@github:${GITHUB_REPOSITORY} || exit 1
251-
fi
252-
fi
142+
for pkg in "${list[@]}"; do
143+
echo "${pkg}:"
144+
pacstall -T "${pkg}"
145+
echo "---"
253146
done
254147
shell: sudo -E -u dio bash {0}
255148
env:

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ exclude: '^.*\.(patch)$'
55

66
repos:
77
- repo: https://github.com/pre-commit/pre-commit-hooks
8-
rev: v5.0.0
8+
rev: v6.0.0
99
hooks:
1010
- id: trailing-whitespace
1111
- id: end-of-file-fixer
@@ -14,13 +14,13 @@ repos:
1414
- id: mixed-line-ending
1515
args: ["--fix=lf"]
1616
- repo: https://github.com/shellcheck-py/shellcheck-py
17-
rev: v0.10.0.1
17+
rev: v0.11.0.1
1818
hooks:
1919
- id: shellcheck
2020
types: []
2121
files: '^.*\.(pacscript|sh)$'
2222
- repo: https://github.com/maxwinterstein/shfmt-py
23-
rev: v3.11.0.2
23+
rev: v3.12.0.1
2424
hooks:
2525
- id: shfmt
2626
args: ["-i", "2", "-bn", "-ci", "-sr", "-s", "-w"]

distrolist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ubuntu:
2-
focal/20.04
32
jammy/22.04
43
noble/24.04
5-
oracular/24.10
64
plucky/25.04
75
questing/25.10
6+
resolute/26.04
87
devel
98
debian:
109
bullseye/11
1110
bookworm/12
1211
trixie/13
12+
forky/14
1313
sid

0 commit comments

Comments
 (0)