Skip to content

Commit

Permalink
Update rules
Browse files Browse the repository at this point in the history
Copy localisation
Fix for hgcommands.py not found
  • Loading branch information
glaure committed Apr 6, 2021
1 parent cbb11af commit edeb283
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions packaging/Ubuntu2004/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,25 @@ override_dh_install:
cp thg debian/tortoisehg/usr/bin

# copy dist package
mkdir -p debian/tortoisehg/usr/lib/python3/dist-packages/tortoisehg
cp -r tortoisehg/* debian/tortoisehg/usr/lib/python3/dist-packages/tortoisehg
# TODO: getting hgcommands.py not found errors
# mkdir -p debian/tortoisehg/usr/lib/python3/dist-packages/tortoisehg
# cp -r tortoisehg/* debian/tortoisehg/usr/lib/python3/dist-packages/tortoisehg
# So install to /usr/bin/tortoisehg instead:
mkdir -p debian/tortoisehg/usr/bin/tortoisehg
cp -r tortoisehg/* debian/tortoisehg/usr/bin/tortoisehg

# copy config.py
cp debian/config.py debian/tortoisehg/usr/lib/python3/dist-packages/tortoisehg/util
#cp debian/config.py debian/tortoisehg/usr/lib/python3/dist-packages/tortoisehg/util
cp debian/config.py debian/tortoisehg/usr/bin/tortoisehg/util

# icons
mkdir -p debian/tortoisehg/usr/share/pixmaps/tortoisehg/icons
cp -r icons/* debian/tortoisehg/usr/share/pixmaps/tortoisehg/icons

# localisation
mkdir -p debian/tortoisehg/usr/share/locale
cp -r locale/* debian/tortoisehg/usr/share/locale

# Call dh_install normally. It will process .install, .install.ARCH
# and/or .install.OS files.
dh_install
Expand Down

0 comments on commit edeb283

Please sign in to comment.