spec-create: modify the 'Source' tag by including a parsable git url

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
Davide Madrisan 2012-10-03 22:21:20 +02:00
parent 6962a1ac16
commit ebc1fd88ad
2 changed files with 7 additions and 0 deletions

View File

@ -1,4 +1,5 @@
Changes in version 1.12.5
Wed Oct 03 2012 Davide Madrisan <davide.madrisan(a)gmail.com>
+ bugfix
* autospec.spec - Davide Madrisan:
@ -18,6 +19,10 @@ Changes in version 1.12.5
* lib/libnetwork.lib - Davide Madrisan:
git.create_tarball(): add some debug messages.
+ improvement
* spec-create - Davide Madrisan:
specfile.create(): modify the 'Source' tag by including a parsable git url.
-------------------------------------------------------------------------------
Changes in version 1.12.4

View File

@ -489,6 +489,8 @@ function specfile.create() {
--git-branch="$git_branch" \
--preserve-dot-git="$preserve_dot_git" \
--destdir="$source_dir" "$2"
spec_source="$2/${git_branch:-master}/$spec_source"
;;
http://*|https://*|ftp://*)
pck_tarball="${2##*/}"