Mageia Bugzilla – Attachment 14352 Details for
Bug 31850
bm -u not working
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
patch to set bm's unpacking directory
bm-3.4-modify_unpack_dir.diff (text/plain), 1.88 KB, created by
Aurelian R
on 2024-02-10 00:43:21 CET
(
hide
)
Description:
patch to set bm's unpacking directory
Filename:
MIME Type:
Creator:
Aurelian R
Created:
2024-02-10 00:43:21 CET
Size:
1.88 KB
patch
obsolete
>diff -Nurp bm-3.4/bm bm-3.4-ddir/bm >--- bm-3.4/bm 2023-07-25 21:35:49.000000000 +0300 >+++ bm-3.4-ddir/bm 2024-02-10 00:53:03.505187293 +0200 >@@ -23,13 +23,14 @@ def passtrough(option, opt, val, parser) > del parser.rargs[:option.nargs] > > def parse_options(): >+ DUMP_DIR = "./" > parser = OptionParser("%prog [OPTIONS] [<rpm dir>] [<spec file>] [<srpm file>]", > version="%prog "+VERSION) > parser.add_option("-a", dest="mode", action="store_const", const="all", > help="do everything and build source and binary packages" > " (default)", default="all") > parser.add_option("-u", dest="mode", action="store_const", const="unpack", >- help="just unpack") >+ help="just unpack. Default directory is \""+DUMP_DIR+"\".") > parser.add_option("-p", dest="mode", action="store_const", const="prep", > help="unpack and run %prep stage") > parser.add_option("-r", dest="mode", action="store_const", const="generate_buildrequires", >@@ -49,7 +50,7 @@ def parse_options(): > parser.add_option("-o", dest="options", action="append", > metavar="OPT", default=[], > help="pass given parameters directly to rpm") >- parser.add_option("--unpack-dir", metavar="DIR", default="/var/tmp", >+ parser.add_option("--unpack-dir", metavar="DIR", default=DUMP_DIR, > help="specify directory where to unpack file(s)") > parser.add_option("--build-log", metavar="FILE", > help="specify where to put the build log for each package") >--- bm-3.4/man/bm.8 2023-07-25 21:35:49.000000000 +0300 >+++ bm-3.4-ddir/man/bm.8 2024-02-10 00:55:13.092939938 +0200 >@@ -30,7 +30,7 @@ do everything and build source and binar > .TP > .B > \fB-u\fP >-just unpack >+just unpack - default directory is \fB./\fP > .TP > .B > \fB-p\fP
diff -Nurp bm-3.4/bm bm-3.4-ddir/bm --- bm-3.4/bm 2023-07-25 21:35:49.000000000 +0300 +++ bm-3.4-ddir/bm 2024-02-10 00:53:03.505187293 +0200 @@ -23,13 +23,14 @@ def passtrough(option, opt, val, parser) del parser.rargs[:option.nargs] def parse_options(): + DUMP_DIR = "./" parser = OptionParser("%prog [OPTIONS] [<rpm dir>] [<spec file>] [<srpm file>]", version="%prog "+VERSION) parser.add_option("-a", dest="mode", action="store_const", const="all", help="do everything and build source and binary packages" " (default)", default="all") parser.add_option("-u", dest="mode", action="store_const", const="unpack", - help="just unpack") + help="just unpack. Default directory is \""+DUMP_DIR+"\".") parser.add_option("-p", dest="mode", action="store_const", const="prep", help="unpack and run %prep stage") parser.add_option("-r", dest="mode", action="store_const", const="generate_buildrequires", @@ -49,7 +50,7 @@ def parse_options(): parser.add_option("-o", dest="options", action="append", metavar="OPT", default=[], help="pass given parameters directly to rpm") - parser.add_option("--unpack-dir", metavar="DIR", default="/var/tmp", + parser.add_option("--unpack-dir", metavar="DIR", default=DUMP_DIR, help="specify directory where to unpack file(s)") parser.add_option("--build-log", metavar="FILE", help="specify where to put the build log for each package") --- bm-3.4/man/bm.8 2023-07-25 21:35:49.000000000 +0300 +++ bm-3.4-ddir/man/bm.8 2024-02-10 00:55:13.092939938 +0200 @@ -30,7 +30,7 @@ do everything and build source and binar .TP .B \fB-u\fP -just unpack +just unpack - default directory is \fB./\fP .TP .B \fB-p\fP
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 31850
:
14352
|
14363