aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp/scripts/import_dsc.py
Commit message (Collapse)AuthorAge
* import_dsc: Support upstream-vcs-tagGuido Günther2019-04-26
| | | | Closes: #782886
* Make it simple to print exception detailsGuido Günther2018-11-24
|
* import-{dsc,orig}: Make --download deprecation text more usefulChris Lamb2018-06-05
| | | | | | | | Point to the manpages for usage examples. Closes: #900606 Signed-off-by: Guido Günther <agx@sigxcpu.org>
* 8bit GuidoGuido Günther2018-02-26
|
* import-dsc: Apply filters on debian tarballs tooGuido Günther2017-11-10
| | | | Closes: #881311
* import-dsc: cleanup temp dirs on unexpected exceptions tooGuido Günther2017-11-07
|
* import-dsc: Fuzzy parse changelog dateGuido Günther2017-11-06
| | | | | | | | | | | Especially older changelog arent 100% conformant (e.g. using a localized day of week like) http://snapshot.debian.org/archive/debian-archive/20090802T004153Z/debian/dists/hamm/hamm/source/sound/sox_11gamma-cb3-5.dsc This allows us to better import older histories. Closes: #880878
* import-dsc: make sure we don't create 'master' if not neededGuido Günther2017-10-23
| | | | | | | | | | This way we only get the debian- and upstream-branch in empty repos and not a pointless 'master' if debian-branch is not set to master. It also makes sure we don't need --create-missing-branches on empty repos where it is pointless. Closes: #750962
* import-dsc: improve error message when Debian branch does not existGuido Günther2017-10-23
|
* import_dsc: group importig functionsGuido Günther2017-10-13
|
* import-dsc: don't create pristine-tar commits on every importGuido Günther2017-10-13
| | | | | | | | We must not create pristine-tar commits if no new upstream sources were imported. Othewise we'd create them on every Debian revision. This does not waste space since commits are identical but does waste time.
* import-dsc: Look for pristine-tar reference by commitGuido Günther2017-10-13
| | | | | The upstream branch tip is up to date at this point already but this makes sure things don't get wired if we move code around.
* import-dsc: split import of tarballs out of mainGuido Günther2017-10-13
| | | | | | The current logic tried to force native and non-native packages into the same code path leading to hardly readabl if-else-maybe code paths.
* Spell pristine_tar consistentlyGuido Günther2017-08-23
|
* import-dsc: cleanup error printing and exceptionsGuido Günther2017-08-12
| | | | Raise exceptions with the error message instead of printing these first.
* import-dsc: be pessimisticGuido Günther2017-08-12
| | | | | | set return value default to 1 and set to 0 on success Gbp-Dch: Ignore
* import-dsc: name DscFile object dsc not srcGuido Günther2017-08-12
| | | | to avoid confusion with DebianSource
* Correct "allow to" typos.Chris Lamb2017-08-06
|
* imort-dsc: Allow for shorter apt: pseudo URLsGuido Günther2017-06-22
| | | | instead of the apt:/// scheme.
* import_dsc: delay pristine-tar import to the very endGuido Günther2017-02-07
| | | | | | | This makes sure we have a sane debian and upstream branch already so we don't leave the repo in an inconsistent state in case of failure. Closes: #851287
* import_dsc: use three slashes by default for apt URLsGuido Günther2017-01-31
| | | | | We don't have a host part so leave that empty. Since there very likely won't be any ever accept only two slashes as well.
* import_dsc: Store debian/changelog in commit messageGuido Günther2017-01-10
| | | | | | when importing packages. Closes: #577810
* import_dsc: fix options.download fallbackGuido Günther2016-12-28
|
* import-dsc: Improve error message if there is no dsc fileGuido Günther2016-12-26
| | | | instead of spewing the exception on the console.
* import-dsc: determine download automaticallyGuido Günther2016-12-26
| | | | No need to parse --download of URL is given or it's not a dsc file
* Only set username and email when creating reposGuido Günther2016-12-21
| | | | Don't modify existing ones.
* gbp clone: configure user.email, user.name from DEBEMAIL/DEBFULLNAMEMichael Stapelberg2016-12-19
| | | | | | Signed-off-by: Guido Günther <agx@sigxcpu.org> Close: #845536
* import_dsc: fail properly again without a package to importGuido Günther2016-12-04
| | | | (introduced by 03276df5b9391dc877521cd6c3553ca071157991)
* Add ability to specify the clone target to gbp-import-{dsc,srpm}Chris Lamb2016-12-04
| | | | | Closes: #846567 Signed-off-by: Chris Lamb <lamby@debian.org>
* Fix new flake8 errorsGuido Günther2016-11-15
| | | | E305 expected 2 blank lines after class or function definition
* import_dsc: flake8 cleanGuido Günther2016-09-12
|
* import_dsc: Use the same patch options as dpkg-source for 1.0 packagesGuido Günther2016-07-05
| | | | | | (except for creating backup files) Closes: #670099
* Give more instructions when config is unparseableGuido Günther2016-07-04
| | | | | | | | and make return codes and messages consistent. This allows us to move some test code from the component tests to the unit tests which is always nice. Closes: #733640
* Use 'component' and 'additional tarball'Guido Günther2016-07-04
| | | | | | since this is what dpkg-source(1) uses. Git-Dch: Ignore
* Move code to create pristine tar commitsGuido Günther2016-07-04
| | | | | | so it can be reused by import_orig Git-Dch: Ignore
* import_dsc: don't assume component tarballs have the correct nameGuido Günther2016-07-03
| | | | | | | The tarball needs to be unpacked into component/ regardless how the toplevel directory in the tarball itself is named. Closes: #829458
* Use imperative for for git messagesGuido Günther2016-07-03
| | | | as suggested in gh:#26.
* import-dsc: Print additinal tarballs found tooGuido Günther2016-06-30
| | | | Git-Dch: Ignore
* import_dsc: remove excess indentation in codeMarkus Lehtonen2016-05-27
| | | | Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* import_dsc: Allow to use pristine-tar with multiple tarballsGuido Günther2016-04-14
|
* dscfile: parse out name of additional tarball dirsGuido Günther2016-04-11
| | | | | Parse out the names where additional tarballs will be unpacked to from dsc as well.
* import_dsc: Make 'gbp import-dsc' aware of component tarballsGuido Günther2016-03-13
| | | | | | | instead of plain failing just import the additional tarball but disable pristine-tar until we sorted out how to export things again. Closes: #561072
* Fix indentationGuido Günther2016-03-13
|
* import_dsc: Check git repo before downloading the sourceGuido Günther2016-01-23
| | | | This makes sure we fail fast and not after the 30MB download
* import-dsc: Bail out if target dir existsGuido Günther2015-11-19
| | | | | | | | | | | | | | | If import-dsc is not run from within a Git repository it tries to create one named like the souce package. If that directory already exists we get confusing message like: gbp:info: No git repository found, creating one. gbp:warning: Version 0.7.0 already imported. gbp:info: Everything imported under /foo/git-buildpackage Avoid this by checking if the directory exists and aborting in this case. Closes: #766350
* import_dsc: Fail if a package has additional tarballsGuido Günther2015-11-18
| | | | Currently we silently ignore them
* Fix FSF address - thanks rpmlintEvgeni Golov2015-06-22
| | | | use gnu.org/licences instead of a postal address, as suggested by Guido
* Extract exception message in a less arcane wayGuido Günther2015-03-27
|
* Remove unused variableGuido Günther2015-02-21
|
* Handle Python3's changed octal literal syntaxGuido Günther2015-02-20
|