fixed Editpkgs() with -de and -dde operations