Skip to content

Commit

Permalink
update pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
UriHerrera committed Jun 13, 2023
1 parent d3f2c17 commit 05b5884
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
12 changes: 9 additions & 3 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,22 +1,28 @@
nuts (0.1.0) nitrux; urgency=medium

* Revise ISO check.

-- Uri Herrera <uri_herrera@nxos.org> Tue, 13 Jun 2023 02:08:00 -0500

nuts (0.0.9) nitrux; urgency=medium

* Check if ISO exists so it's not downloaded again.

-- Uri Herrera <uri_herrera@nxos.org> Thu, 13 Jun 2023 01:47:00 -0500
-- Uri Herrera <uri_herrera@nxos.org> Tue, 13 Jun 2023 01:47:00 -0500

nuts (0.0.8) nitrux; urgency=medium

* Revise aria2c command.

-- Uri Herrera <uri_herrera@nxos.org> Thu, 13 Jun 2023 01:47:00 -0500
-- Uri Herrera <uri_herrera@nxos.org> Tue, 13 Jun 2023 01:47:00 -0500

nuts (0.0.7) nitrux; urgency=medium

* Fix ISO comparison.
* Revise aria2c command.
* Revise axel command.

-- Uri Herrera <uri_herrera@nxos.org> Thu, 13 Jun 2023 01:34:00 -0500
-- Uri Herrera <uri_herrera@nxos.org> Tue, 13 Jun 2023 01:34:00 -0500

nuts (0.0.6) nitrux; urgency=medium

Expand Down
10 changes: 7 additions & 3 deletions usr/bin/nuts
Original file line number Diff line number Diff line change
Expand Up @@ -304,18 +304,22 @@ case "$1" in


# -- Download the ISO with aria2c using the BitTorrent protocol.
# -- Check if the ISO already exists so it's not downloaded again.
# -- Check if the ISO already exists so it's not downloaded again. If an ISO file was downloaded then rename it.
# -- However, If the ISO file found doesn't match the checksum, it will still cause the utility to exit at a later stage.
# -- Use the magnet link from the query file.
# -- Magnet link is provided by FOSS Torrents https://fosstorrents.com/distributions/nitrux/#downloads.

if [ -f "$NUTS_DIR_DLS/nitrux.iso" ]; then
puts-info "An ISO file was found, skipping..."
if [ ! -f "$NUTS_DIR_DLS/nitrux.iso" ]; then
puts-info "ISO file not found! Checking for other ISO files, continuing..."
if [ -f "$NUTS_DIR_DLS/nitrux-nx-desktop-plasma-*-amd64.iso" ]; then
$ROOT mv "$NUTS_DIR_DLS"/nitrux-nx-desktop-plasma-*-amd64.iso "$NUTS_DIR_DLS"/nitrux.iso
fi
else
puts-info "Dowloading ISO using aria2c, continuing..."
MAGNET_LINK="$(tail /tmp/nuts-query.info | grep magnetlink= | rev | cut -d '=' -f -42 | rev)"
$ROOT aria2c -d "$NUTS_DIR_DLS" --seed-time=0 "$MAGNET_LINK"
$ROOT mv "$NUTS_DIR_DLS"/nitrux-nx-desktop-plasma-*-amd64.iso "$NUTS_DIR_DLS"/nitrux.iso

fi


Expand Down

0 comments on commit 05b5884

Please sign in to comment.