[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

dpt takeover throwing an exception



I have been endeavouring to adopt 'libintl-perl', however the execution of 'dpt takeover' is throwing an error for a missing `debian/changelog' in the package description.

The package versions run to 1.26... however the exception is raised at 1.20.

Output below:

dpt takeover libintl-perl -a 945988 -n
***
*** Taking over libintl-perl
***
gbp:info: Downloading snapshots of 'libintl-perl' to '/tmp/tmpm9cfwrnp'...
gbp:info: No git repository found, creating one.
gbp:info: Version '1.11-1' imported under '/home/keni/src/pkg-perl/packages/libintl-perl'
gbp:info: Version '1.11-2' imported under '/home/keni/src/pkg-perl/packages/libintl-perl'
gbp:info: Version '1.16-1' imported under '/home/keni/src/pkg-perl/packages/libintl-perl'
gbp:info: Version '1.16-2' imported under '/home/keni/src/pkg-perl/packages/libintl-perl'
gbp:info: Version '1.16-3' imported under '/home/keni/src/pkg-perl/packages/libintl-perl'
gbp:info: Version '1.16-4' imported under '/home/keni/src/pkg-perl/packages/libintl-perl'
Traceback (most recent call last):
  File "/usr/bin/gbp", line 149, in <module>
    sys.exit(supercommand())
  File "/usr/bin/gbp", line 145, in supercommand
    return module.main(args)
  File "/usr/lib/python3/dist-packages/gbp/scripts/import_dscs.py", line 185, in main
    if importer.importdsc(dsc):
  File "/usr/lib/python3/dist-packages/gbp/scripts/import_dscs.py", line 72, in importdsc
    return import_dsc.main(['import-dsc'] + self.args + [dsc.dscfile])
  File "/usr/lib/python3/dist-packages/gbp/scripts/import_dsc.py", line 529, in main
    apply_debian_patch(repo, sources[0], dsc, commit, options)
  File "/usr/lib/python3/dist-packages/gbp/scripts/import_dsc.py", line 175, in apply_debian_patch
    author = get_author_from_changelog(source.unpacked)
  File "/usr/lib/python3/dist-packages/gbp/scripts/import_dsc.py", line 115, in get_author_from_changelog
    dch = ChangeLog(filename=os.path.join(dir, 'debian/changelog'))
  File "/usr/lib/python3/dist-packages/gbp/deb/changelog.py", line 84, in __init__
    raise NoChangeLogError("Changelog %s not found" % (filename, ))
gbp.deb.changelog.NoChangeLogError: Changelog /home/keni/src/pkg-perl/packages/tmpe8bg7289/libintl-perl-1.20/debian/changelog not found

Is there a process we can follow in this case to recover the package / project?

I have checked 'salsa' and there is no entry for the project under any list, including archived.

The code doing the work is Python - not my forte, but viewing through the call stack I can see where the issue is happening.
This is my first execution of the script, so not sure if the following is an option - based on updates performed.
Perhaps someone is able to guide me through circumvention of the Python exception to complete the 'takeover' script, and thereby leave the option open to add the missing entry manually to the change log, assuming that we can locate the actual text

Any ideas / assistance welcome.
--
Ken

Reply to: