import-local fails with 'str' object has no attribute 'peel' in resolvconf
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
git-ubuntu |
New
|
Low
|
Nish Aravamudan |
Bug Description
I wanted to work with resolvconf and noticed it was out of date.
I thought I'd try the 'import-local'. I assume this isnt' specific to import-local though, and probably is why the pkg/ubuntu/
to reproduce:
$ git ubuntu clone resolvconf
$ cd resolvconf
$ git checkout pkg/ubuntu/
$ head -n 1 debian/changelog
resolvconf (1.69ubuntu1.1) trusty-proposed; urgency=medium
$ dget https:/
$ git ubuntu import-local local-pkg/ resolvconf_
11/29/2017 13:38:27 - INFO:Using git repository at /tmp/tmpts_cv1ti
Traceback (most recent call last):
File "/home/
main()
File "/home/
sys.
File "/home/
args.
File "/home/
Changelog.
File "/home/
path=
File "/home/
top_
AttributeError: 'str' object has no attribute 'peel'
This fixes the call to derive_ source_ from_changelog( )
diff --git a/gitubuntu/ importlocal. py b/gitubuntu/ importlocal. py importlocal. py importlocal. py
index 13f8690..bcea6a7 100644
--- a/gitubuntu/
+++ b/gitubuntu/
@@ -161,7 +161,7 @@ def main(
break
dist = derive_ source_ from_changelog( from_treeish( repo, unapplied_ import_ tree_hash) , changelog_ from_treeish( unapplied_ import_ tree_hash) ,
- Changelog.
+ repo.get_
)
import_dsc(
repo=repo,
But 'import-local' still seems broken. It just leaves a tmpdir
around that has the stuff i'm looking for, but I would have expected
it to puth those refs back into my working .git.
$ git ubuntu import-local my-local-pkg resolvconf_ 1.69ubuntu1. 2.dsc
11/29/2017 13:53:10 - INFO:Using git repository at /tmp/tmpoizoljf3
$ GIT_DIR= /tmp/tmpoizoljf 3/.git git branch -l pkg/importer/ debian/ dsc pkg/importer/ debian/ pristine- tar pkg/importer/ ubuntu/ dsc pkg/importer/ ubuntu/ pristine- tar /tmp/tmpoizoljf 3/.git git tag -l pkg/applied/ 1.69ubuntu1. 2 pkg/import/ 1.69ubuntu1. 2
do-not-push
my-local-
my-local-
my-local-
my-local-
$ GIT_DIR=
my-local-
my-local-