Importing packages

Packages inserted (or modified) in one repository can also be exported, and subse­quently imported into another repository. To import a package file, open the “File” menu and select “Import”

When importing a file, conflicts may occur. Packages requires each package name (and alias) to be unique, and each variant name must be unique too. Any conflicts that arise must be resolved before the file can be imported (partially or fully).

The view for resolving import conflicts has three lists. The leftmost list contains the packages that do not conflict. Only these can be imported. Note that the button “Confirm imports” only imports the packages that have a tick in the rightmost column, so that you can do a partial import.

To the right of the “Non-conflicting” list, is the list with packages that do conflict. When you resolve all conflicts for a package, the package gets removed from the “Conflicting” list and inserted in the “Non-conflicting” list.

On selecting an item in the “Conflicting” list, the section at the right shows the names and aliases of the package, and the table below shows the variants of the package (if any). Conflicts may appear in either.

When names/aliases conflict, these have a yellow background. You may edit these names, so that they no longer conflict. The table for the variants has a column labelled “conflict” near the right with tick-marks for those variants that conflict. Note that the table lists both conflicting and non-conflicting variants. As stated above, when all variants are adjusted to be non-conflicting and non of the names/aliases are conflicting, the package is moved to the “Non-conflicting” column.

There is a final option for variants of a package with conflicting names: the variants may be merged to the existing package in the repository. For this function, select the variants by placing a tick in the rightmost column, and click on the button “Merge selected variants”. Only those variants will then be imported, and they will be stored as variants of the existing package.

Note that you can only place a tick-mark on variants that do not conflict. If a variant conflicts, you must rename it before merging.