Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
15
rated 0 times [  15] [ 0]  / answers: 1 / hits: 3383  / 1 Year ago, wed, may 24, 2023, 4:26:27

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.


More From » packaging

 Answers
0

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"

[#21513] Thursday, May 25, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
teromato

Total Points: 139
Total Questions: 102
Total Answers: 100

Location: Liechtenstein
Member since Mon, May 15, 2023
1 Year ago
;