Your message dated Thu, 08 Dec 2016 15:18:38 +0000
with message-id <[email protected]>
and subject line Bug#846567: fixed in git-buildpackage 0.8.8
has caused the Debian Bug report #846567,
regarding git-buildpackage: Please add an option to import-dsc to specify the 
target directory
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
846567: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=846567
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: git-buildpackage
Version: 0.8.7
Severity: wishlist
Tags: patch

Hi,

It would be nice to be able to specify the target directory to
import to when creating a new repo. I would find this useful as
I use "pkg-packagename" instead of just "packagename".

Patch attached.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
diff --git a/gbp/scripts/import_dsc.py b/gbp/scripts/import_dsc.py
index aa734e8..0f31d31 100644
--- a/gbp/scripts/import_dsc.py
+++ b/gbp/scripts/import_dsc.py
@@ -269,6 +269,8 @@ def build_parser(name):
                                                 dest="author_committer_date")
     
import_group.add_boolean_config_file_option(option_name="allow-unauthenticated",
                                                 dest="allow_unauthenticated")
+    import_group.add_option("--target", dest="target",
+                            help="Specify target directory")
     return parser
 
 
@@ -324,13 +326,14 @@ def main(argv):
             print_dsc(src)
 
         if needs_repo:
-            if os.path.exists(src.pkg):
+            target = options.target if options.target is not None else src.pkg
+            if os.path.exists(target):
                 raise GbpError("Directory '%s' already exists. If you want to 
import into it, "
                                "please change into this directory otherwise 
move it away first."
-                               % src.pkg)
+                               % target)
             gbp.log.info("No git repository found, creating one.")
-            repo = DebianGitRepository.create(src.pkg)
-            os.chdir(repo.path)
+            repo = DebianGitRepository.create(target)
+            os.chdir(target)
 
         if repo.bare:
             disable_pristine_tar(options, "Bare repository")
@@ -429,7 +432,7 @@ def main(argv):
             gbpc.RemoveTree(dirs[d])()
 
     if not ret and not skipped:
-        gbp.log.info("Version '%s' imported under '%s'" % (src.version, 
src.pkg))
+        gbp.log.info("Version '%s' imported under '%s'" % (src.version, 
repo.path))
     return ret
 
 

--- End Message ---
--- Begin Message ---
Source: git-buildpackage
Source-Version: 0.8.8

We believe that the bug you reported is fixed in the latest version of
git-buildpackage, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Guido Günther <[email protected]> (supplier of updated git-buildpackage package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Thu, 08 Dec 2016 14:52:18 +0100
Source: git-buildpackage
Binary: git-buildpackage git-buildpackage-rpm
Architecture: all source
Version: 0.8.8
Distribution: unstable
Urgency: medium
Maintainer: Guido Günther <[email protected]>
Changed-By: Guido Günther <[email protected]>
Closes: 834582 846479 846567 846936 847464
Description: 
 git-buildpackage-rpm - Suite to help with RPM packages in Git repositories
 git-buildpackage - Suite to help with Debian packages in Git repositories
Changes:
 git-buildpackage (0.8.8) unstable; urgency=medium
 .
   [ Chris Lamb ]
   * [03276df] Add ability to specify the clone target to gbp-import-{dsc,srpm}
     (Closes: #846567)
 .
   [ Guido Günther ]
   * [0a9cf44] docs: setting target dir is supported for --download too
   * [f631e64] import_dsc: fail properly again without a package to import
   * [a10c77b] import_srpm: allow for more than one argument otherwise giving a
     target dir always raises an error
   * [e1aec57,627b858] import_rpms: use upstream version for upstream tag
     (Closes: #846936)
   * [ce42aadc] pq_rpm: use relative path names for patches Based on a patch
     from Tzafrir Cohen
     (Closes: #834582)
   * [fa091b6] rpm: improve error message on specfile patch parser errors.
   * [bf4afbe] gbp-posttag-push: catch exceptions instead of printing the full
     trace
   * [1d44f48] buildpackage_rpm: drop unused vcs_info()
   * flake8 cleanups all over the rpm code
 .
   [ Tzafrir Cohen ]
   * [73d30ef] specfile: handle %patch -F.
     (Closes: #846479)
   * [d9b28f9] gbp-mock: handle single letter options by properly handling '-?'
     to request help output.
     (Closes: #847464)
Checksums-Sha1: 
 0cafc676d553ad43b1996564ab0f3c937f2690e3 2144 git-buildpackage_0.8.8.dsc
 8f680279868da139f1ebc50811087d1183592072 1742604 git-buildpackage_0.8.8.tar.xz
 be76ce36034dba4dae0ae4fc1966f695af8be8d1 101152 
git-buildpackage-rpm_0.8.8_all.deb
 3f5a930d7f0bc947efccd0b6064cd70b90f6bab7 339390 git-buildpackage_0.8.8_all.deb
Checksums-Sha256: 
 11f600d5eba156d73e743c84084ea8bc6ab2e48a89178e5b9e8c6d86970ff91b 2144 
git-buildpackage_0.8.8.dsc
 462fe23ba35997afa214d1aa2e8c2f821c7d67d2ee8a7a2caaf23308c7afde92 1742604 
git-buildpackage_0.8.8.tar.xz
 c34f8b8633e3d796ad6c297c0d7f453d197735a8b92607a0d102da11aef65f7b 101152 
git-buildpackage-rpm_0.8.8_all.deb
 a0d310998e5ab41f515c474b279394a912f296b2b30f34385139319c55682476 339390 
git-buildpackage_0.8.8_all.deb
Files: 
 c82374bd31eb6e6be05c01cb185c833a 2144 vcs optional git-buildpackage_0.8.8.dsc
 fe6edf0f85bb7f74cdad3d2f0b9127d1 1742604 vcs optional 
git-buildpackage_0.8.8.tar.xz
 3d93a83a41dac5ddf4db5e82ec045fae 101152 vcs optional 
git-buildpackage-rpm_0.8.8_all.deb
 5b6706347205a5240663f0a1c269b7b4 339390 vcs optional 
git-buildpackage_0.8.8_all.deb

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEvHzQcjh1660F3xzZB7i3sOqYEgsFAlhJaPUACgkQB7i3sOqY
EgsDgxAAizIV6qPxOXWyw/upEuNQFM0pHFt+8Ehx0A57aVtAa6JPyOU5dnegFJt/
Oy5I3MfTxWaFzYtd4XxZnOSe0g7lEiqKcd+Seao7VoGlVCYcBPFIPGOkBf4CvDAu
o71XFJyijTI3z2d8cV2wVXHx4Ykz3umVErx+iry6jQWi4WIvp4doFovKAUXACrMl
/2h69s4iWNaD60SozLHa1gvou8gKj9mIHgB4q/EeoylPZZt0XXDbQ/T4kWvMPOmk
t2A4WNL8Wwg7+GVXCxGPAdDcCaF8yWMkm9Rc+cIuMDLRWZ2lyrR/mL9RLF/0+ur0
9CYqcD1142FJ2CbZxekArub6o7zrls6vjom4FWDTgWOwKXZtNceBrJA2WuMvnUNt
UMQgGLMWZffkPkhOkv/8pD/j+QA3l7w+4kTOzNwFch6jSAoRGpevrwh64mTlKIFs
K0Al3LVB6oVZ9pQ3x6zxWtxSYmBQpZzszSMIYdr7qK7yehgDffoOdCrxoJZTNoqB
RhoULxwHqMhvVoy/ceTH8lYnaQWSFf0ZrDAg6U+vISphkyn02LH1f4G2RlhDEhDJ
0wJPx4zMUeG6Zyxv0eFtqpq4OKcPB6MCg2TKI70qAWrPBSUZlvFUFgITv5i95dKw
IWA99+oC/qUzWvQoT5hy17TfUr3mZPmF5DLZHDckt0OK57nEzIA=
=Sb9u
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to