gramps -i FILE doesn't use temp db as documented

Bug #1427444 reported by jimav
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gramps
Fix Released
Unknown
gramps (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

The gramps man page says:

OPTIONS
  -i,--import= FILE
              Import data from FILE. If you haven't specified a database then a temporary data‐
              base is used; this is deleted when you exit gramps.

However this does not seem to be the case, i.e., a temp database is not used. Instead, the imported data is installed permanently in the default database.

STEPS TO REPRODUCE:

1. rm -rf $HOME/.gramps
2. gramps -i Nixon.gramps # (attached) or use your own
3. FamilyTrees->Quit

4. gramps

ACTUAL RESULT: The imported family tree is present in the default database and can be viewed
DOCUMENTED RESULT: Imported data should not be present

Again, I'm not sure wheter the behavior or the documentation is wrong (but I suspect the latter).

ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: gramps 4.1.1~dfsg-3
ProcVersionSignature: Ubuntu 3.19.0-7.7-generic 3.19.0
Uname: Linux 3.19.0-7-generic x86_64
ApportVersion: 2.16.2-0ubuntu1
Architecture: amd64
CurrentDesktop: Unity
Date: Mon Mar 2 16:47:34 2015
InstallationDate: Installed on 2015-02-06 (24 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Alpha amd64 (20150205)
PackageArchitecture: all
SourcePackage: gramps
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
jimav (james-avera) wrote :
Revision history for this message
Ross Gammon (rosco2) wrote :

Yes it looks like the manpage should be updated.
The removal of the .gramps directory is not necessary to reproduce it. Basically, if gramps is run with the -i option without specifying a database to import into with the -o option, a new database is created with the name "Family Tree 1". If you do the same command again, a new database is created called "Family Tree 2". These databases are not temporary, and do not get deleted (which I think is a desirable behaviour!).

Changed in gramps (Ubuntu):
status: New → Confirmed
Revision history for this message
Ross Gammon (rosco2) wrote :

I attach a patch that corrects the text in the gramps manpage so that it reflects what happens when you import a file without specifying a database.

Revision history for this message
Ross Gammon (rosco2) wrote :

Actually, probaby better if we patch the gramps.1.in

Changed in gramps:
status: Unknown → In Progress
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Correct import text in gramps manpage" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Changed in gramps (Ubuntu):
importance: Undecided → Low
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gramps - 4.1.3~dfsg-1

---------------
gramps (4.1.3~dfsg-1) unstable; urgency=medium

  * New upstream release
  * Fixes manpage desription of import function (LP: #1427444)
  * Fixes crash when closing detatched gramplet (Closes: #785393)

 -- Ross Gammon <email address hidden> Sat, 16 May 2015 11:49:41 +0200

Changed in gramps (Ubuntu):
status: Confirmed → Fix Released
Changed in gramps:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.