Changeset 1164


Ignore:
Timestamp:
Jun 6, 2017, 11:52:09 PM (8 years ago)
Author:
dmik
Message:

spec: os2-rpm: Better support for local git repos via file://.

It would not work back then due to --remote being not supported for local
repository access.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • spec/trunk/SPECS/os2-rpm/macros.scm

    r1163 r1164  
    4242%setup -n "%__source_dir" -Tc\
    4343rm -f "%SOURCE0"\
    44 git archive --format zip --output "%SOURCE0" --prefix "%__source_dir/" --remote "%{__source_url}" "%{?__source_rev}"\
     44_localfile="%__source_url"\
     45_localfile="${_localfile#file://}"\
     46if [ "$_localfile" != "%__source_url" ] ; then\
     47git -C "$_localfile" archive --format zip --output "%SOURCE0" --prefix "%__source_dir/" "%{?__source_rev}"\
     48else\
     49git archive --format zip --output "%SOURCE0" --prefix "%__source_dir/" --remote "%__source_url" "%{?__source_rev}"\
     50fi\
    4551unzip -qq "%SOURCE0" "%__source_dir"/RPMBUILD_SOURCE -d .. 2>/dev/null || :\
    4652%__scm_pre_pack\
Note: See TracChangeset for help on using the changeset viewer.