Skip to content

Commit

Permalink
dist/debian: add trailer line
Browse files Browse the repository at this point in the history
this should address the warnings from dpkg-source and
dpkg-parsechangelog, like:

```
dpkg-source: warning: scylla-package/debian/changelog(l3): found end of file where expected more change data or trailer
```

```
dpkg-parsechangelog: warning:     debian/changelog(l3): found end of file where expected more change data or trailer
```

Signed-off-by: Kefu Chai <[email protected]>
  • Loading branch information
tchaikov authored and fruch committed Jan 2, 2024
1 parent f12ca86 commit 8bd3367
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions dist/debian/changelog.template
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
%{product}-cqlsh (%{version}-%{release}-%{revision}) %{codename}; urgency=medium

* New release

-- Israel Fruchter <[email protected]> %{timestamp}
5 changes: 4 additions & 1 deletion dist/debian/debian_files_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import datetime
import string
import os
import shutil
Expand Down Expand Up @@ -47,11 +48,13 @@ class DebianFilesTemplate(string.Template):
shutil.copytree('dist/debian/debian', 'build/debian/debian')

s = DebianFilesTemplate(changelog_template)
now = datetime.datetime.now(tz=datetime.timezone.utc)
changelog_applied = s.substitute(product=product,
version=version,
release=release,
revision='1',
codename='stable')
codename='stable',
timestamp=now.strftime("%a, %d %b %Y %H:%M:%S %z"))

s = DebianFilesTemplate(control_template)
control_applied = s.substitute(product=product)
Expand Down

0 comments on commit 8bd3367

Please sign in to comment.