Browse Source

Changed download and freshmeat hives to simply return the urls, and changed sde-create-package to use url2d to convert them into good [D] tags

karasz/new-early
Alejandro Mery 17 years ago
parent
commit
dc0fe17710
3 changed files with 5 additions and 9 deletions
  1. +1
    -1
      bin/sde-create-package
  2. +3
    -4
      lib/sde-package/hives/download
  3. +1
    -4
      lib/sde-package/hives/freshmeat

+ 1
- 1
bin/sde-create-package

@ -216,7 +216,7 @@ $( echo "$desc" | sed -e 's,^,[T] ,' )
EOT
echo "$download" | while read l; do
echo "[D] $l"
"$SDEROOT/lib/sde-package/url2d.sh" "$l"
done
) | tee "$SDEROOT/package/$repo/$pkg/$pkg.desc"

+ 3
- 4
lib/sde-package/hives/download

@ -13,9 +13,8 @@
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
[ -n "$SDEROOT" ] ||
export SDEROOT=$( cd "${0%/*}/../../../"; pwd -P )
pkg="$1"; shift
exec "$SDEROOT/lib/sde-package/url2d.sh" "$@"
for dl; do
echo "[D] $dl"
done

+ 1
- 4
lib/sde-package/hives/freshmeat

@ -24,12 +24,9 @@ extract_xml_name() {
}
get_download() {
local location
for arg; do
if curl -s -I -f "$arg" -o "header.log"; then
location="`sed -n 's/\r// ; s/Location: *//p' header.log`"
download_file="`basename $location`"
download_url="`dirname $location`/"
rm -f header.log
return
fi
@ -169,5 +166,5 @@ fi
# [V]
[ -z "$version" ] || echo "[S] $version"
# [D]
[ -z "$download_file" ] || echo "[D] 0 $download_file $download_url"
[ -z "$location" ] || echo "[D] $location"

Loading…
Cancel
Save