---
name: "dbp-importdsc"
section: "1"
platform: "linux"
package: "darcs-buildpackage"
version: "0.5.12.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/dbp-importdsc"
---

# dbp-importdsc(1)

Import a Debian source package into darcs-buildpackage archive

## NAME

dbp-importdsc - Import a Debian source package into darcs-buildpackage      archive

## SYNOPSIS

**dbp-importdsc** *dsc\_name*

## DESCRIPTION

**dbp-importdsc** imports a Debian source package into a **darcs-buildpackage** archive, notes the package version in the configs, and commits the change.  All information, including package name, version, Debian diffs, and upstream source, is automatically detected from the source package.

This program will automatically detect if the upstream sources have already been imported, and if so, will not attempt to re-import them again.

It is an error to run **dbp-importdsc** on a package whose Debian version already exists in the archive.  It is also an error to run **dbp-importdsc** on a package when a newer version already exists in the archive.  **dbp-importdsc** detects both conditions and will terminate without causing harm.

## OPTIONS

- **dsc\_name**

  Gives the path to the Debian .dsc file from the source package.

## BUGS

- •

  Neither GPG signatures nor MD5 sums are verified when unpacking Debian source packages.

- •

  This program does not deal well with Debian native packages (ones that lack a Debian diff.gz). It will probably work, but building the package later might result in a non-native package.

## FILES

The following specific files are used by this application:

- *~/.darcs-buildpackage*

  Specifies the location of the canonical Debian and upstream repositories.

## ENVIRONMENT

This application uses no environment variables directly, but other programs it calls may do so.

## COPYRIGHT

darcs-buildpackage, all associated scripts and programs, this manual, and all build scripts are Copyright (C) 2003 - 2005 John Goerzen.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA

## AUTHOR

**darcs-buildpackage**, its modules, documentation, executables, and all included files, except where noted, was written by John Goerzen \<jgoerzen@complete.org\> and copyright is held as stated in the COPYRIGHT section.

**darcs-buildpackage** may be downloaded from the Debian packaging system or at\
  \<URL:http://packages.debian.org/darcs-buildpackage\>.

**darcs-buildpackage** may also be downloaded using Darcs by running **darcs get --partial** **http://darcs.complete.org/darcs-buildpackage**.

## SEE ALSO

Detailed usage information, including a background and a description of how the tools fit together, can be found in the darcs-buildpackage Manual.  On Debian systems, you may find this at */usr/share/doc/darcs-buildpackage*.

**darcs-buildpackage** applications have references in that manual and the following manpages:  [**dbp-importdsc**(1)](/dbp-importdsc/1.md), [**dbp-importorig**(1)](/dbp-importorig/1.md), [**dbp-markdeb**(1)](/dbp-markdeb/1.md), [**darcs-buildpackage**(1)](/darcs-buildpackage/1.md).

Other related references include: [**darcs**(1)](/darcs/1.md), [**dpkg-source**(1)](/dpkg-source/1.md).
