Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--deb-after-purge Does not Write to postrm File #1472

Open
brianraymes opened this issue Mar 9, 2018 · 4 comments
Open

--deb-after-purge Does not Write to postrm File #1472

brianraymes opened this issue Mar 9, 2018 · 4 comments

Comments

@brianraymes
Copy link

brianraymes commented Mar 9, 2018

It appears that the --deb-after-purge flag does not work in fpm version 1.9.3.

The following always works as expected by including the contents of remove-file within postrm's after_remove() method when creating a debian package:

fpm \
  ... \
  --after-remove remove-file \
  ...

The following does not work as expected:

fpm \
  ... \
  --deb-after-purge purge-file \
  ...

I would expect that the contents of purge-file would end up within postrm's after_purge() method when used.

Also, if one only provides the --deb-after-purge flag, the postrm file is not created and does not exist in the completed package.

@dcarolloz
Copy link

+1
fpm version 1.10.2 has still the same issue

@Jamesits
Copy link

Jamesits commented Sep 1, 2019

can reproduce this bug on fpm 1.11.0

morph027 added a commit to morph027/fpm that referenced this issue Jan 8, 2023
Signed-off-by: morph027 <stefan.heitmueller@gmx.com>
@Z9n2JktHlZDmlhSvqc9X2MmL3BwQG7tk

--deb-after-purge does not work in fpm-1.15.1 (released Feb 1, 2023) too.
Bug is ~5 years old (!!!). What is the problem to fix it ?

@Qwarctick
Copy link

Hello @jordansissel
#1620 seems a good fix for this issue? No?

What can we do more to close this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants