Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Dgit.pm: Break out failedcmd_waitstatus | Ian Jackson | 2016-10-24 |
| | | | | | | No functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk> | ||
* | Dgit.pm: failedcmd_report_cmd: Break out of failedcmd | Ian Jackson | 2016-10-23 |
| | | | | | | No functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk> | ||
* | Infra: dgit-infrastructure has, and uses, its own copies of the perl modules | Ian Jackson | 2016-10-15 |
| | | | | | | | | This avoids introducing a versioned dependency between dgit and dgit-infrastructure (and also makes it easier to test cross-version compatibility). Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk> | ||
* | Infra: Introduce Debian::Dgit::Infra | Ian Jackson | 2016-10-15 |
| | | | | | | | This is used by all the Perl in dgit-infrastructure.deb. So far it does nothing, so no functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk> | ||
* | Copyright: Add notices to some more of the (larger) files | Ian Jackson | 2016-10-11 |
| | | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk> | ||
* | Dgit.pm: fail: Strip any trailing newline | Ian Jackson | 2016-09-25 |
| | | | | | | This makes it sensible to call fail() with a here doc. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk> | ||
* | Tag change: Provide debiantags in Dgit.pm | Ian Jackson | 2016-07-31 |
| | | | | | | No callers yet. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk> | ||
* | Tag change: Make git_for_each_ref support multiple patterns | Ian Jackson | 2016-07-31 |
| | | | | | | | By passing $patterns= [ ... ]. No functional change yet as no call site does this. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk> | ||
* | Tag change: Declare intent in docs etc. | Ian Jackson | 2016-07-31 |
| | | | | | | | Provide debiantag_new as well as debiantag_old. Change the docs and an important comment. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk> | ||
* | Tag change: Rename debiantag to debiantag_old | Ian Jackson | 2016-07-31 |
| | | | | | | | | | | | | | | | | | We are going to change the tag name of the main signed tag used by dgit to signal the user's intent to the archive server. Prepare for this by changing debiantag to debiantag_old and changing all call sites outside dgit itself. dgit will want to be able to generate either, depending on whether it's cooperating in an rpush with a new or old dgit so reintroduce a wrapper called debiantag there. This will also allow us to have dgit generate old tags for testing. No functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk> | ||
* | Dgit.pm: cmdoutput: Handle undef in arg crash better | Ian Jackson | 2016-07-31 |
| | | | | | | | | | | Use `confess' which produces a stack trace. And don't forget to use Data::Dumper; Bug introduced in e6ce71a87a1c "Move various useful functions into Dgit.pm [...]". Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk> | ||
* | Subprocess error handling: Initialise $? to -1 | Ian Jackson | 2016-07-17 |
| | | | | | | | | | | | | | | | When system(3perl) fails due to syscall error, it sets only $!. When it succeeds it sets only $? and sometimes trashes $!. Conversely, close of a popened filehandle always sets both in all cases. Document this in a comment. So when using system and relying on $?/$! (rather than looking at system's return value), such as when about to use failedcmd, it's necessary to initialise $? to -1. Fix the three call sites where system might be followed by failedcmd but this wasn't done. | ||
* | Dgit.pm: Provide hashfile() | Ian Jackson | 2016-07-16 |
| | | | | Call site(s) will come later. | ||
* | If a .orig in .. is a symlink, hardlink the link target into our private ↵ | Ian Jackson | 2015-08-16 |
| | | | | unpack directory, rather than the link itself (since latter won't work if the symlink is relative). | ||
* | When exec fails, always print the program name in the error message. | Ian Jackson | 2015-07-27 |
| | |||
* | Dgit.pm: Provide executable_on_path (avoids loading File::Which which is ↵ | Ian Jackson | 2015-07-27 |
| | | | | rather more heavyweight) (no callers yet) | ||
* | Do not quote `:' in shellquote. | Ian Jackson | 2015-07-26 |
| | |||
* | Dgit.pm: Provide messagequote | Ian Jackson | 2015-07-26 |
| | |||
* | Work around #793471 (madness with $SIG{__WARN__} and Perl's system builtin): ↵ | Ian Jackson | 2015-07-25 |
| | | | | | | | move $SIG{} setting into setup_sigwarn in Dgit.pm, and check getppid. We also need to fix up the expectation for an error message in one of the tests, where the message changes as a side effect. | ||
* | Do some quoting on debug output (needed if the server might not be ↵ | Ian Jackson | 2015-07-19 |
| | | | | trustworthy and might send us bad stuff). | ||
* | For non-Debian distros, debiantag() uses distro name a la DEP-14. | Ian Jackson | 2015-07-04 |
| | |||
* | Dgit.pm: poldb_setup: Provide hook function | Ian Jackson | 2015-06-23 |
| | | | | No users yet, so nfc. | ||
* | Avoid use of "my $_", which is not portable | Ian Jackson | 2015-06-22 |
| | |||
* | Dgit.pm: git_for_each_ref: Provide optional $git_dir argument | Ian Jackson | 2015-05-31 |
| | |||
* | git_get_ref: Move to Dgit.pm and reimplement | Ian Jackson | 2015-05-31 |
| | | | | | | | | | | | | | Use git for-each-ref --format=%(objectname) [r]efs/whatever This pattern won't match literally as a prefix because a ref name cannot contain [, so it must match according to fnmatch. whatever cannot contain fnmatch metacharacters because they're not valid in ref names. This is a better idiom because it might directly look up the ref in question (although currently it probably doesn't). | ||
* | Dgit.pm: git_for_each_ref: do not insist that first component after refs/ ↵ | Ian Jackson | 2015-05-31 |
| | | | | matches \w+ | ||
* | Break out ensuredir and make mkrepotmp use it | Ian Jackson | 2015-05-31 |
| | |||
* | Dgit.pm: git_for_each_tag_referring provides referred-to object id too | Ian Jackson | 2015-05-31 |
| | |||
* | Move is_fast_fwd into Dgit.pm | Ian Jackson | 2015-05-31 |
| | |||
* | Move git_rev_parse into Dgit.pm (renaming it from rev_parse | Ian Jackson | 2015-05-31 |
| | |||
* | Move various useful functions into Dgit.pm. Necessitates some slightly ↵ | Ian Jackson | 2015-05-31 |
| | | | | fancy footwork with $::us | ||
* | Dgit.pm: Move debugging earlier in file (pure code motion) | Ian Jackson | 2015-05-31 |
| | |||
* | Dgit.pm: Fix next's in git_for_each_tag_referring which should be returns | Ian Jackson | 2015-05-31 |
| | |||
* | Dgit.pm: Add debugging to git_for_each_... | Ian Jackson | 2015-05-31 |
| | |||
* | Infra: Exit statuses: work around bizarre behaviour of perl die wrt $?, and ↵ | Ian Jackson | 2015-05-31 |
| | | | | de-reserve policy hook status flag 0x80 | ||
* | Dgit.pm: Introduce $deliberately_re and use it everywhere | Ian Jackson | 2015-05-31 |
| | |||
* | Dgit.pm: export git_for_each_tag_referring | Ian Jackson | 2015-05-31 |
| | |||
* | git_for_each_ref: Fix FH handling | Ian Jackson | 2015-05-31 |
| | |||
* | dgit-repos-policy-debian: WIP bugfixes to debugging | Ian Jackson | 2015-05-31 |
| | |||
* | dgit-repos-policy-debian: WIP bugfixes to debugging | Ian Jackson | 2015-05-31 |
| | |||
* | Diagnostics: Make shellquote() print empty arguments as '' | Ian Jackson | 2015-05-31 |
| | |||
* | dgit-repos-policy-debian: Add debugging output | Ian Jackson | 2015-05-31 |
| | |||
* | Debugging: use typeglobs to simplify various things (nfc) | Ian Jackson | 2015-05-31 |
| | |||
* | Rename $debug variable to $debuglevel (nfc) | Ian Jackson | 2015-05-31 |
| | |||
* | Move a $debug check into printdebug (nfc) | Ian Jackson | 2015-05-31 |
| | |||
* | Debugging output: Break out debugcmd into Dgit.pm and use it everywhere (nfc) | Ian Jackson | 2015-05-31 |
| | |||
* | Move dgit's debugging arrangements into Dgit.pm | Ian Jackson | 2015-05-31 |
| | |||
* | Policy hook protocol: define bits in hex (nfc) | Ian Jackson | 2015-05-31 |
| | |||
* | New policy admin script | Ian Jackson | 2015-05-31 |
| | |||
* | Provide $component_re | Ian Jackson | 2015-04-15 |
| |