[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: git-buildpackage interface change and use in .mrconfig



Hi,

On Thu, Jun 27, 2013 at 07:55:43AM +0200, Salvatore Bonaccorso wrote:
> Hi
> 
> The git-buildpackage 0.6.0 has the following NEWS.Debian.gz:
> 
>   In order to provide a more consistent and git like interface a new gbp super
>   command was added as a front end to all git-* and gbp-* commands. So what was
>   either git-<command> or gbp-<command> is now
> 
>       gbp <command>
> 
>   The old commands are still provided for backward compatibility but will be
>   removed in a future release so please update any scripts and tools relying on
>   it.
> 
> This means that at least in future, when git-buildpackage drops the
> support for git-<command> we need to change our use there.
> 
> Do we want to change this already, or keep the old style for at least
> some time until git-buildpackage migrates to jessie?
> 
> There might be people wo also use our mrconfig under wheezy, thus I
> refrained to already commit the attached change. Comments?
 
Actually I still on wheezy on some of my machines.

What do you think about this one?

-----------------------------------

diff --git a/.mrconfig b/.mrconfig
index 4d2e509..6b1150e 100644
--- a/.mrconfig
+++ b/.mrconfig
@@ -4,10 +4,18 @@ lib=
         echo "I: $1"
       }
       git_checkout () {
-        gbp-clone --all git+ssh://git.debian.org/git/pkg-perl/packages/$1.git
+        if [ -e /usr/bin/gbp ]; then
+          gbp clone --all git+ssh://git.debian.org/git/pkg-perl/packages/$1.git
+        else
+          gbp-clone --all git+ssh://git.debian.org/git/pkg-perl/packages/$1.git
+        fi
       }
       git_update() {
-        gbp-pull --pristine-tar
+        if [ -e /usr/bin/gbp ]; then
+          gbp pull --pristine-tar
+        else
+          gbp-pull --pristine-tar
+        fi
       }
       git_checkout_special() {
         git clone git+ssh://git.debian.org/git/pkg-perl/$1.git
 
-----------------------------------

Regards,
  cstamas
-- 
CSILLAG Tamas (cstamas) - http://cstamas.hu/

What's this about SED compatibility? Linux breaks my srctoman script
which I have been using for almost 20 years on V7, SYSV and Solaris
and FreeBSD. Call me a retard.
                 -- Wietse Venema


Reply to: