Ubuntu – Dch non-interactive mode

packaging

I'm trying to find a way to run dch in non-interactive mode, in order to incorporate the debian/changelog file creation and manipulation within a shell script.

It seems that only when running it with the argument -r "" it works (as specified here). However, I need to use different arguments.

Best Answer

Found the problem,

It appears that dch will open an editor if it doesn't get all the information that it considers mandatory. So in order to create a debian/changelog without opening an editor I've found that the following combination of options is sufficient:

dch --create --distribution unstable --package "pkgpkg" --newversion 0.0.0.0-0.test "some nice message"
Related Question