aboutsummaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorKoDDoS Mirror <mirror@koddos.net>2018-07-27 19:16:01 +0700
committerKoDDoS Mirror <mirror@koddos.net>2018-07-27 19:16:01 +0700
commit4cf7c27e5dca04492495f1fc08256f57f86faf56 (patch)
tree8128850191e6ea0cc364f17ae73e9f705ad1ecdd /libs
parent59d7df676b7222b532c2acf4309b16d255a0808b (diff)
parentfbe7031b606c5716b7bb87a069da05a0cf56fc12 (diff)
downloadlibrebootfr-4cf7c27e5dca04492495f1fc08256f57f86faf56.tar.gz
librebootfr-4cf7c27e5dca04492495f1fc08256f57f86faf56.zip
Merge with original repo
Diffstat (limited to 'libs')
-rwxr-xr-xlibs/project31
1 files changed, 4 insertions, 27 deletions
diff --git a/libs/project b/libs/project
index 4c8b2fff..e5162fb5 100755
--- a/libs/project
+++ b/libs/project
@@ -1081,34 +1081,11 @@ project_release_sources_archive_path() {
local project=$1
shift
- local sources_path="$root/$SOURCES/"
- local release_path
- local argument
- local path="$project"
-
- for argument in "" "$@"
- do
- if [[ -n "$argument" ]]
- then
- path="$path-$argument"
- fi
-
- local directory_path="$sources_path/$path"
+ local repository="$project"
+ local sources_path="$(project_sources_path "$project" "$repository" "$@")"
+ local archive_path="$root/$RELEASE/$SOURCES/$project/${sources_path##*/}.$ARCHIVE"
- if ! directory_filled_check "$directory_path"
- then
- continue
- fi
-
- release_path=$path
- done
-
- if [[ -n "$release_path" ]]
- then
- local archive_path="$root/$RELEASE/$SOURCES/$project/$release_path.$ARCHIVE"
-
- printf '%s\n' "$archive_path"
- fi
+ printf '%s\n' "$archive_path"
}
project_release_sources_archive_create() {