Package: myrepos
Version: 1.20141024.1
Severity: normal

Dear Maintainer,

   * What led up to the situation?

I would like to use multiple mrconfig files, so I created ~/.mrconfig-alt.
I created it as a symbolic link, like all my manually-curated dotfiles.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

In a clone of https://github.com/joeyh/myrepos/:

% mr -c ~/.mrconfig-alt register

   * What was the outcome of this action?

% mr -c ~/.mrconfig-alt register
mr register: unknown repository type
zsh: exit 255

   * What outcome did you expect instead?

I expected registration to succeed.  It succeeds if I delete the symbolic
link and re-create it as a normal file.

   * Additional information:

One workaround would be to replace the symbolic link by a hard link.

Simply passing the realpath of the symbolic link as the argument to the -c
option changes the meaning of the command in a manner that causes mr to fail
to find repositories,¹ so it's not a drop-in workaround.

The absolute path of the _target_ of the symlink is in ~/.mrtrust, and without
it there mr complains (as expected).  Having the absolute path of the symlink
itself in ~/.mrtrust makes no difference.

Possibly related: 'mr -c ~/.mrconfig-alt list' displays repositories listed in
either ~/.mrconfig or ~/.mrconfig-alt, instead of only repositories listed in
the latter.  This might be a separate problem.

Please let me know if I could provide additional information.

Thanks,

Daniel


¹ Changing '-c foobar' to '-c "$(realpath foobar)"' causes mr to interpret
relative paths in the ini section headers as relative to
`dirname(realpath(symlink))' rather than as relative to `dirname(symlink)'.


-- System Information:
Debian Release: 7.8
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'stable-updates')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

myrepos depends on no packages.

Versions of packages myrepos recommends:
ii  libhtml-parser-perl  3.69-2
ii  libio-pty-easy-perl  0.09-1
ii  libwww-perl          6.04-1
ii  perl                 5.14.2-21+deb7u2

Versions of packages myrepos suggests:
pn  ack-grep          <none>
pn  bzr               <none>
ii  curl              7.26.0-1+wheezy12
pn  cvs               <none>
pn  darcs             <none>
pn  fossil            <none>
ii  git [git-core]    1:1.9.1-1~bpo70+2
pn  kdesdk-scripts    <none>
ii  liburi-perl       1.60-1
ii  mercurial         2.2.2-3
ii  subversion        1.8.10-1~bpo70+1
pn  subversion-tools  <none>
pn  vcsh              <none>

-- debconf-show failed


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to