Mailinglist Archive: opensuse-buildservice (348 mails)

< Previous Next >
RE: [opensuse-buildservice] [PATCH 1/1 for build] Support remote repos (v2)
  • From: "Yang, Yi Y" <yi.y.yang@xxxxxxxxx>
  • Date: Fri, 9 Apr 2010 09:36:26 +0800
  • Message-id: <FC2FB65B4D919844ADE4BE3C2BB739AD1E174F6C@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
+ elif [ "${SRC#http://}"; != "$SRC" ]; then
+ mkdir -p "$(getcachedir "$SRC")"
+ set -- env CACHE_DIR="$CACHE_DIR"
$BUILD_DIR/createrepomddeps "$SRC"

createrepomddeps already has command line option handling so this
could be passed as command line option instead.

I didn't see createrepomddeps to have any option, it just takes a repo list,
could you explain how to do this?


- ln -s "$SRC" "$BUILD_ROOT/.init_b_cache/rpms/$PKG.${SRC##*.}"
+ if [ "${SRC:0:7}" == "http://"; ] ; then
+ target_file=$(get_pkg_filename "$SRC")
+ ln -s "$target_file"
"$BUILD_ROOT/.init_b_cache/rpms/$PKG.${SRC##*.}"
+ else
+ ln -s "$SRC" "$BUILD_ROOT/.init_b_cache/rpms/$PKG.${SRC##*.}"
+ fi

Things should work without that change I think as downloadpkg
modifies $SRC.

Yes, it is really modified, 'ln -s "$SRC"
"$BUILD_ROOT/.init_b_cache/rpms/$PKG.${SRC##*.}"' is enough.

cu
Ludwig

--
(o_ Ludwig Nussel
//\
V_/_ http://www.suse.de/
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg)
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References