Mageia Bugzilla – Attachment 14363 Details for
Bug 31850
bm -u not working
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
updates patch to set current working directory
bm-3.4-fix-cwd.patch (text/plain), 1.95 KB, created by
Aurelian R
on 2024-02-10 17:29:08 CET
(
hide
)
Description:
updates patch to set current working directory
Filename:
MIME Type:
Creator:
Aurelian R
Created:
2024-02-10 17:29:08 CET
Size:
1.95 KB
patch
obsolete
>diff -Nurp bm-3.4/bm bm-3.4-cwd/bm >--- bm-3.4/bm 2023-07-25 21:35:49.000000000 +0300 >+++ bm-3.4-cwd/bm 2024-02-10 17:03:56.648427468 +0200 >@@ -23,13 +23,14 @@ def passtrough(option, opt, val, parser) > del parser.rargs[:option.nargs] > > def parse_options(): >+ workDir = os.getcwd() > 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 \""+workDir+"\"") > 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=workDir, > 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") >diff -Nurp bm-3.4/man/bm.8 bm-3.4-cwd/man/bm.8 >--- bm-3.4/man/bm.8 2023-07-25 21:35:49.000000000 +0300 >+++ bm-3.4-cwd/man/bm.8 2024-02-10 17:00:48.833934527 +0200 >@@ -30,7 +30,7 @@ do everything and build source and binar > .TP > .B > \fB-u\fP >-just unpack >+just unpack - default directory is the current working directory > .TP > .B > \fB-p\fP
diff -Nurp bm-3.4/bm bm-3.4-cwd/bm --- bm-3.4/bm 2023-07-25 21:35:49.000000000 +0300 +++ bm-3.4-cwd/bm 2024-02-10 17:03:56.648427468 +0200 @@ -23,13 +23,14 @@ def passtrough(option, opt, val, parser) del parser.rargs[:option.nargs] def parse_options(): + workDir = os.getcwd() 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 \""+workDir+"\"") 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=workDir, 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") diff -Nurp bm-3.4/man/bm.8 bm-3.4-cwd/man/bm.8 --- bm-3.4/man/bm.8 2023-07-25 21:35:49.000000000 +0300 +++ bm-3.4-cwd/man/bm.8 2024-02-10 17:00:48.833934527 +0200 @@ -30,7 +30,7 @@ do everything and build source and binar .TP .B \fB-u\fP -just unpack +just unpack - default directory is the current working directory .TP .B \fB-p\fP
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 31850
:
14352
| 14363