From 866e263c54718fffadaeeea42fa6b828d023543a Mon Sep 17 00:00:00 2001
From: Pirate Praveen <praveen@debian.org>
Date: Fri, 5 Jun 2020 20:01:24 +0530
Subject: [PATCH 1/2] Replace the uupdate modified changelog with text from
 template

Thanks to wookey for the patch
---
 npm2deb/__init__.py | 3 +++
 1 file changed, 3 insertions(+)

--- a/npm2deb/__init__.py
+++ b/npm2deb/__init__.py
@@ -101,6 +101,9 @@
 
             new_dir = '%s-%s' % (self.debian_name, self.upstream_version)
             utils.change_dir('../%s' % new_dir)
+            # copy over non-duplicated changelog
+            _os.rename('../%s/debian/changelog' % self.debian_name, 'debian/changelog')
+            _rmtree('../%s' % self.debian_name)
             self.run_buildpackage()
             self.edit_changelog()
 
--- a/npm2deb/templates.py
+++ b/npm2deb/templates.py
@@ -1,4 +1,4 @@
-CHANGELOG = """%(debian_name)s (%(version)s-1) UNRELEASED; urgency=low
+CHANGELOG = """%(debian_name)s (%(version)s-1) UNRELEASED; urgency=medium
 
   * Initial release (Closes: #nnnn)
 
