public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Peter Lemenkov <lemenkov@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/fheroes2] f43: Don't download anything if data-files installed already
Date: Sun, 12 Jul 2026 15:02:33 GMT [thread overview]
Message-ID: <178386855393.1.11210121392755214588.rpms-fheroes2-f8db7359e6af@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/fheroes2
Branch : f43
Commit : f8db7359e6affdca8bcd307969c4962477025d91
Author : Peter Lemenkov <lemenkov@gmail.com>
Date : 2026-07-12T17:00:59+02:00
Stats : +2/-2 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/fheroes2/c/f8db7359e6affdca8bcd307969c4962477025d91?branch=f43
Log:
Don't download anything if data-files installed already
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
---
diff --git a/fheroes2.sh b/fheroes2.sh
index 51eed41..84e4b64 100644
--- a/fheroes2.sh
+++ b/fheroes2.sh
@@ -6,11 +6,11 @@ BASE=$HOME/.local/share/fheroes2
ZIP=$BASE/h2demo.zip
rc=0
-if [ ! -f $ZIP ] ; then
+if [[ ! -n $(find $HOME/.local/share/fheroes2 -maxdepth 2 -iname heroes2.agg) ]] ; then
/usr/share/autodl/AutoDL.py /usr/share/fheroes2/fheroes2.autodlrc
rc=$?
if [ $rc -eq 0 -o $rc -eq 2 ] ; then
- unzip -n -L -d $BASE -n $ZIP license.txt readme.txt data/campaign.hs data/h2offer.smk data/heroes2.agg data/standard.hs maps/brokena.mp2
+ unzip -n -L -d $BASE -n $ZIP license.txt readme.txt data/campaign.hs data/heroes2.agg data/standard.hs maps/brokena.mp2
rc=$?
fi
fi
reply other threads:[~2026-07-12 15:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178386855393.1.11210121392755214588.rpms-fheroes2-f8db7359e6af@fedoraproject.org \
--to=lemenkov@gmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox