Git-Url:
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=af7e1034a3ee52ffa4c976120479421ed7626bf3
commit af7e1034a3ee52ffa4c976120479421ed7626bf3
Author: Miklos Vajna <[EMAIL PROTECTED]>
Date: Sat Jun 14 19:42:27 2008 +0200
makepkg: add noversrc option
- this is for packages without pkgver in source() like rss2email
diff --git a/doc/FrugalBuild.txt b/doc/FrugalBuild.txt
index 8ee5bcd..27b3424 100644
--- a/doc/FrugalBuild.txt
+++ b/doc/FrugalBuild.txt
@@ -333,6 +333,10 @@ options (array)::
genscriptlet: Informs makepkg about not having a scriptlet is intentional. You
want to use this when the scriptlet is generated during build().
+ noversrc: Informs makepkg about the source tarball does not contain the
+ package version, so it should be always downloaded from upstream, rather
+ than using an rsync mirror.
+
NOTE: Feel free to use `nomirror` in a WIP repo but please try avoid it when
pushing to a production repository.
diff --git a/scripts/makepkg b/scripts/makepkg
index e1cf193..6fefcae 100755
--- a/scripts/makepkg
+++ b/scripts/makepkg
@@ -887,7 +887,7 @@ if [ "`type -p fblint`" ]; then
fi
eval "serverlist=${TREE}_servers"
-if [ "$F_makepkg_scm" = "git" ]; then
+if [ "$F_makepkg_scm" = "git" -a ! "`check_option NOVERSRC`" ]; then
_serverlist=`GIT_DIR=$fst_root/${TREE}/.git git config --get remote.origin.url
2>/dev/null`
if [ -n "$_serverlist" ]; then
serverlist=$_serverlist
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git