gbp-import-dsc(1) | git-buildpackage Manual | gbp-import-dsc(1) |
gbp-import-dsc - Import Debian packages into a Git repository
gbp import-dsc
[--version] [--help] [--verbose]
[--color=[auto|on|off]] [--color-scheme= COLOR_SCHEME]
[--allow-same-versions] [--author-date-is-committer-date]
[--author-is-committer] [--debian-branch= branch_name]
[--debian-tag= tag-format] [--filter=
pattern]... [--keyid= gpg-keyid]
[--[no-]create-missing-branches] [--[no-]pristine-tar]
[--[no-]sign-tags] [--skip-debian-tag]
[--upstream-branch= branch_name] [--upstream-tag=
tag-format] [--upstream-vcs-tag= tag-format]
[--repo-user= [GIT|DEBIAN]] [--repo-email=
[GIT|DEBIAN]] debian-source.dsc [target]
gbp import-dsc
[options] [--[no-]allow-unauthenticated] URL
[target]
gbp import-dsc imports a Debian source package into a Git repository, notes the package version in the commit logs, and commits the change. All information, including package name, version, Debian modifications and upstream source, is automatically detected from the source package. After import the repository can be used with the other gbp tools.
If the command is run from within an existing Git repository, it will import into it; if not, a new repository named as the Debian source package is created. You can override the location of the new repository by specifying the optional target argument.
When given a URL gbp import-dsc will download the source package prior to importing it. dget is used for all schemes except for the special scheme apt:/// which uses apt-get (and therefore needs deb-src entries in your /etc/apt/sources.list). The later can be abbreviated by using the pseudo URL apt:.
The default is to not add upstream tags as additional parents since this requires additional setup to have the upstream sources in the same repository.
This option can be given multiple times.
Git will subtly misbehave if the committer date of a commit is not later than or equal to all its parents.
Several gbp.conf files are parsed to set defaults for the above command-line arguments. See the gbp.conf(5) manpage for details.
Download and import a source package from a URL:
gbp import-dsc http://http.debian.net/debian/pool/main/h/hello/hello_2.10-1.dsc
Download and import a source package via apt-get source from unstable:
gbp import-dsc apt:hello/sid
Import a source package in the local file system:
gbp import-dsc ../hello_2.10-1.dsc
gbp-import-dscs(1), gbp-buildpackage(1),
gbp-import-orig(1), gbp-dch(1), apt-get(1),
sources.list(5), dget(1), gbp.conf(5),
debuild(1), git(1), pristine-tar(1),
The Git-Buildpackage Manual
⟨file:///usr/share/doc/git-buildpackage/manual-html/index.html⟩
Guido Günther <agx@sigxcpu.org>
1 February 2021 |